pub struct Progress { /* private fields */ }Available on crate feature
winio only.Expand description
A progress bar.
Implementations§
Source§impl Progress
impl Progress
Sourcepub fn is_indeterminate(&self) -> bool
pub fn is_indeterminate(&self) -> bool
Get if the progress bar is in indeterminate state.
Sourcepub fn set_indeterminate(&mut self, v: bool)
pub fn set_indeterminate(&mut self, v: bool)
Set if the progress bar is in indeterminate state.
Trait Implementations§
Source§impl AsRawWidget for Progress
impl AsRawWidget for Progress
Source§fn as_raw_widget(&self) -> RawWidget
fn as_raw_widget(&self) -> RawWidget
Get the raw window handle.
Source§impl AsWidget for Progress
impl AsWidget for Progress
Source§fn as_widget(&self) -> BorrowedWidget<'_>
fn as_widget(&self) -> BorrowedWidget<'_>
Get the window handle.
Source§impl Component for Progress
impl Component for Progress
Source§type Event = ProgressEvent
type Event = ProgressEvent
The output event type to the parent.
Source§type Init<'a> = BorrowedWindow<'a>
type Init<'a> = BorrowedWindow<'a>
Initial parameter type.
Source§fn init(
init: <Progress as Component>::Init<'_>,
_sender: &ComponentSender<Progress>,
) -> Progress
fn init( init: <Progress as Component>::Init<'_>, _sender: &ComponentSender<Progress>, ) -> Progress
Create the initial component.
Source§async fn start(&mut self, _sender: &ComponentSender<Progress>) -> !
async fn start(&mut self, _sender: &ComponentSender<Progress>) -> !
Start the event listening.
Source§async fn update(
&mut self,
_message: <Progress as Component>::Message,
_sender: &ComponentSender<Progress>,
) -> bool
async fn update( &mut self, _message: <Progress as Component>::Message, _sender: &ComponentSender<Progress>, ) -> bool
Respond to the message.
Source§fn render(&mut self, _sender: &ComponentSender<Progress>)
fn render(&mut self, _sender: &ComponentSender<Progress>)
Render the widgets.
Source§impl Layoutable for Progress
impl Layoutable for Progress
Source§fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
The preferred size.
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl !Send for Progress
impl !Sync for Progress
impl Unpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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