pub struct VariationCoords(/* private fields */);Expand description
List of font variation coordinates by axis tag. If more than one coordinate for a given axis is provided, the last one added is used.
Implementations§
Source§impl VariationCoords
impl VariationCoords
Sourcepub fn new<T>(values: impl IntoIterator<Item = (T, f32)>) -> VariationCoordswhere
T: IntoTag,
pub fn new<T>(values: impl IntoIterator<Item = (T, f32)>) -> VariationCoordswhere
T: IntoTag,
Create a list of variation coordinates from a sequence of (tag, value) pairs.
§Example:
use epaint::text::VariationCoords;
let coords = VariationCoords::new([
(b"wght", 500.0),
(b"wdth", 75.0),
]);pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for VariationCoords
impl Clone for VariationCoords
Source§fn clone(&self) -> VariationCoords
fn clone(&self) -> VariationCoords
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariationCoords
impl Debug for VariationCoords
Source§impl Default for VariationCoords
impl Default for VariationCoords
Source§fn default() -> VariationCoords
fn default() -> VariationCoords
Returns the “default value” for a type. Read more
Source§impl Hash for VariationCoords
impl Hash for VariationCoords
Source§impl PartialEq for VariationCoords
impl PartialEq for VariationCoords
impl StructuralPartialEq for VariationCoords
Auto Trait Implementations§
impl Forget for VariationCoords
impl Freeze for VariationCoords
impl Move for VariationCoords
impl RefUnwindSafe for VariationCoords
impl Send for VariationCoords
impl Sync for VariationCoords
impl Unpin for VariationCoords
impl UnsafeUnpin for VariationCoords
impl UnwindSafe for VariationCoords
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more