pub struct VariationRegion<'a> {
pub region_axes: &'a [RegionAxisCoordinates],
}
Expand description
The VariationRegion record
Fields§
§region_axes: &'a [RegionAxisCoordinates]
Array of region axis coordinates records, in the order of axes given in the ‘fvar’ table.
Implementations§
Source§impl<'a> VariationRegion<'a>
impl<'a> VariationRegion<'a>
Sourcepub fn region_axes(&self) -> &'a [RegionAxisCoordinates]
pub fn region_axes(&self) -> &'a [RegionAxisCoordinates]
Array of region axis coordinates records, in the order of axes given in the ‘fvar’ table.
Source§impl<'a> VariationRegion<'a>
impl<'a> VariationRegion<'a>
Source§impl VariationRegion<'_>
impl VariationRegion<'_>
Sourcepub fn compute_scalar(&self, coords: &[F2Dot14]) -> Fixed
pub fn compute_scalar(&self, coords: &[F2Dot14]) -> Fixed
Computes a scalar value for this region and the specified normalized variation coordinates.
Sourcepub fn compute_scalar_f32(&self, coords: &[F2Dot14]) -> f32
pub fn compute_scalar_f32(&self, coords: &[F2Dot14]) -> f32
Computes a floating point scalar value for this region and the specified normalized variation coordinates.
Trait Implementations§
Source§impl<'a> Clone for VariationRegion<'a>
impl<'a> Clone for VariationRegion<'a>
Source§fn clone(&self) -> VariationRegion<'a>
fn clone(&self) -> VariationRegion<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ComputeSize for VariationRegion<'_>
impl ComputeSize for VariationRegion<'_>
Source§impl<'a> Debug for VariationRegion<'a>
impl<'a> Debug for VariationRegion<'a>
Source§impl<'a> FontReadWithArgs<'a> for VariationRegion<'a>
impl<'a> FontReadWithArgs<'a> for VariationRegion<'a>
Source§impl<'a> Hash for VariationRegion<'a>
impl<'a> Hash for VariationRegion<'a>
Source§impl<'a> Ord for VariationRegion<'a>
impl<'a> Ord for VariationRegion<'a>
Source§fn cmp(&self, other: &VariationRegion<'a>) -> Ordering
fn cmp(&self, other: &VariationRegion<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for VariationRegion<'a>
impl<'a> PartialEq for VariationRegion<'a>
Source§impl<'a> PartialOrd for VariationRegion<'a>
impl<'a> PartialOrd for VariationRegion<'a>
impl<'a> Eq for VariationRegion<'a>
impl<'a> StructuralPartialEq for VariationRegion<'a>
Auto Trait Implementations§
impl<'a> Freeze for VariationRegion<'a>
impl<'a> RefUnwindSafe for VariationRegion<'a>
impl<'a> Send for VariationRegion<'a>
impl<'a> Sync for VariationRegion<'a>
impl<'a> Unpin for VariationRegion<'a>
impl<'a> UnwindSafe for VariationRegion<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more