pub struct ProgressLoader { /* private fields */ }Expand description
Progress loader with percentage.
Implementations§
Source§impl ProgressLoader
impl ProgressLoader
Sourcepub fn set_progress(&self, progress: f32)
pub fn set_progress(&self, progress: f32)
Set progress (0.0 to 1.0).
Sourcepub fn get_progress(&self) -> f32
pub fn get_progress(&self) -> f32
Get progress.
Trait Implementations§
Source§impl Component for ProgressLoader
impl Component for ProgressLoader
Source§fn render(&self, width: usize) -> Vec<String>
fn render(&self, width: usize) -> Vec<String>
Render the component to lines for the given viewport width. Read more
Source§fn invalidate(&self)
fn invalidate(&self)
Invalidate any cached rendering state.
Called when theme changes or when component needs to re-render from scratch.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Downcast to Any for runtime type checking.
This enables the layout system to check for LayoutNodeProvider.
Source§fn handle_input(&self, _data: &str) -> bool
fn handle_input(&self, _data: &str) -> bool
Optional handler for keyboard input when component has focus. Read more
Source§fn wants_key_release(&self) -> bool
fn wants_key_release(&self) -> bool
If true, component receives key release events (Kitty protocol).
Default is false - release events are filtered out.
Auto Trait Implementations§
impl !Freeze for ProgressLoader
impl RefUnwindSafe for ProgressLoader
impl Send for ProgressLoader
impl Sync for ProgressLoader
impl Unpin for ProgressLoader
impl UnsafeUnpin for ProgressLoader
impl UnwindSafe for ProgressLoader
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