pub struct SampledAnimator {
pub selector: SampledSelector,
pub offset: Option<[f32; 2]>,
pub scale: Option<[f32; 2]>,
pub rotation_degrees: Option<f32>,
pub opacity: Option<f32>,
pub fill: Option<[f32; 4]>,
pub stroke: Option<[f32; 4]>,
pub tracking: Option<f32>,
pub advance_follows_scale: bool,
pub reveal: Option<SampledReveal>,
}Expand description
An animator’s selector and properties at one time.
Fields§
§selector: SampledSelectorWhat it selects.
offset: Option<[f32; 2]>Offset in font sizes, +y down.
scale: Option<[f32; 2]>Scale about each character’s centre.
rotation_degrees: Option<f32>Clockwise degrees about each character’s centre.
opacity: Option<f32>Target opacity.
fill: Option<[f32; 4]>Target fill color, straight sRGB.
stroke: Option<[f32; 4]>Target stroke color, straight sRGB.
tracking: Option<f32>Extra space after each character, font sizes.
advance_follows_scale: boolWhether the advance follows the horizontal scale.
reveal: Option<SampledReveal>The reveal’s edge, its values held to their ranges.
Trait Implementations§
Source§impl Clone for SampledAnimator
impl Clone for SampledAnimator
Source§impl Debug for SampledAnimator
impl Debug for SampledAnimator
Source§impl PartialEq for SampledAnimator
impl PartialEq for SampledAnimator
impl StructuralPartialEq for SampledAnimator
Auto Trait Implementations§
impl Forget for SampledAnimator
impl Freeze for SampledAnimator
impl Move for SampledAnimator
impl RefUnwindSafe for SampledAnimator
impl Send for SampledAnimatorwhere
RawVecInner: Send,
impl Sync for SampledAnimatorwhere
RawVecInner: Sync,
impl Unpin for SampledAnimator
impl UnsafeUnpin for SampledAnimator
impl UnwindSafe for SampledAnimatorwhere
RawVecInner: UnwindSafe,
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