pub struct Counter {Show 14 fields
pub from: f64,
pub to: f64,
pub decimals: u8,
pub separator: Option<String>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub easing: EasingType,
pub duration: Option<f64>,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
pub text_shadow: Option<TextShadow>,
pub stroke: Option<Stroke>,
}counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§from: f64counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
to: f64counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
decimals: u8counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
separator: Option<String>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
prefix: Option<String>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
suffix: Option<String>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
easing: EasingTypecounter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
duration: Option<f64>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Seconds the count takes to run, measured from start_at.
Left unset the count stretches over whatever remains of the scene, so it
only reaches to on the very last frame and the viewer never gets to
read the figure they were counting towards. Setting this shorter than
the scene makes the count land early and hold.
timing: TimingConfigcounter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStylecounter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timeline: Vec<TimelineStep>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
text_shadow: Option<TextShadow>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stroke: Option<Stroke>counter is a frozen composition (issue #333). Compose a plain text node and drive its displayed value with an animation/expression on content instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Counter
impl Animatable for Counter
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Counter
impl<'de> Deserialize<'de> for Counter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Counter
impl JsonSchema for Counter
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Painter for Counter
impl Painter for Counter
fn paint_content( &self, canvas: &Canvas, layout: &BoxLayout, props: &AnimatedProperties, ctx: &PaintCtx, )
fn intrinsic_size( &self, _available: AvailableSize, _ctx: &MeasureCtx, ) -> Option<(f32, f32)>
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
impl UnwindSafe for Counter
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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