pub struct Gauge {Show 16 fields
pub value: f64,
pub min: f64,
pub max: f64,
pub label: Option<String>,
pub track_color: String,
pub fill_color: String,
pub track_width: f32,
pub start_angle: f32,
pub end_angle: f32,
pub show_value: bool,
pub animated: bool,
pub animation_duration: f64,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§value: f64gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
min: f64gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
max: f64gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
label: Option<String>gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
track_color: Stringgauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
fill_color: Stringgauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
track_width: f32gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
start_angle: f32gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
end_angle: f32gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
show_value: boolgauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
animated: boolgauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
animation_duration: f64gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timing: TimingConfiggauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStylegauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timeline: Vec<TimelineStep>gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>gauge is a frozen composition (issue #333). The closest primitive recipe is an svg arc path animated with draw_progress; crates/rustmotion/skills/rules/composition-recipes.md flags this one (with number_wheel) as a reasonable exception to keep using directly, since the arc is mechanically harder to reproduce than a card/text/shape composition. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Gauge
impl Animatable for Gauge
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Gauge
impl<'de> Deserialize<'de> for Gauge
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 Gauge
impl JsonSchema for Gauge
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 Gauge
impl Painter for Gauge
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 Gauge
impl RefUnwindSafe for Gauge
impl Send for Gauge
impl Sync for Gauge
impl Unpin for Gauge
impl UnsafeUnpin for Gauge
impl UnwindSafe for Gauge
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