pub struct Progress {Show 13 fields
pub progress: f64,
pub variant: ProgressVariant,
pub width: f32,
pub height: f32,
pub background_color: String,
pub fill_color: String,
pub border_radius: f32,
pub track_width: f32,
pub show_value: bool,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§progress: f64progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
variant: ProgressVariantprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
width: f32progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
height: f32progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
background_color: Stringprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
fill_color: Stringprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
border_radius: f32progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
track_width: f32progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
show_value: boolprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timing: TimingConfigprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStyleprogress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timeline: Vec<TimelineStep>progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>progress is a frozen composition (issue #333). Compose a track + fill from two shapes — a static track and a rounded_rect fill whose style.width is keyframed — instead. See crates/rustmotion/skills/rules/composition-recipes.md’s progress-bar recipe and examples/composition-progress-bars.json. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Progress
impl Animatable for Progress
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Progress
impl<'de> Deserialize<'de> for Progress
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 Progress
impl JsonSchema for Progress
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 Progress
impl Painter for Progress
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 Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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