pub struct EuvProgressProps {
pub percent: Signal<f64>,
pub label: &'static str,
pub active: Signal<bool>,
}Expand description
Props for the euv_progress component.
Defines the strongly-typed interface for a determinate progress bar.
The fill level is owned by the caller through a Signal<f64> so the
bar can be driven by a download, a form submission, or a timer.
Fields§
§percent: Signal<f64>The completion percentage in the 0.0..=100.0 range; values
outside it are clamped by progress_percent_clamp.
label: &'static strThe label text displayed beside the bar.
active: Signal<bool>Whether the bar is currently advancing; drives the animated running style instead of the settled one.
Implementations§
Source§impl EuvProgressProps
impl EuvProgressProps
pub fn get_percent(&self) -> Signal<f64>
pub fn get_mut_percent(&mut self) -> &mut Signal<f64>
pub fn set_percent(&mut self, val: Signal<f64>) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
pub fn get_active(&self) -> Signal<bool>
pub fn get_mut_active(&mut self) -> &mut Signal<bool>
pub fn set_active(&mut self, val: Signal<bool>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvProgressProps
impl Clone for EuvProgressProps
Source§impl Debug for EuvProgressProps
impl Debug for EuvProgressProps
Auto Trait Implementations§
impl Freeze for EuvProgressProps
impl RefUnwindSafe for EuvProgressProps
impl Send for EuvProgressProps
impl Sync for EuvProgressProps
impl Unpin for EuvProgressProps
impl UnsafeUnpin for EuvProgressProps
impl UnwindSafe for EuvProgressProps
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