pub struct ProgressBar { /* private fields */ }Expand description
The View created by progress_bar.
Trait Implementations§
Source§impl<State, Action> View<State, Action, ViewCtx> for ProgressBar
impl<State, Action> View<State, Action, ViewCtx> for ProgressBar
Source§type Element = Pod<ProgressBar>
type Element = Pod<ProgressBar>
The element type which this view operates on.
Source§type ViewState = ()
type ViewState = ()
State that is used over the lifetime of the retained representation of the view. Read more
Source§fn build(
&self,
ctx: &mut ViewCtx,
_: &mut State,
) -> (Self::Element, Self::ViewState)
fn build( &self, ctx: &mut ViewCtx, _: &mut State, ) -> (Self::Element, Self::ViewState)
Create the corresponding Element value.
Source§fn rebuild(
&self,
prev: &Self,
(): &mut Self::ViewState,
_ctx: &mut ViewCtx,
element: Mut<'_, Self::Element>,
_: &mut State,
)
fn rebuild( &self, prev: &Self, (): &mut Self::ViewState, _ctx: &mut ViewCtx, element: Mut<'_, Self::Element>, _: &mut State, )
Update
element based on the difference between self and prev.Source§fn teardown(
&self,
(): &mut Self::ViewState,
ctx: &mut ViewCtx,
element: Mut<'_, Self::Element>,
)
fn teardown( &self, (): &mut Self::ViewState, ctx: &mut ViewCtx, element: Mut<'_, Self::Element>, )
Handle
element being removed from the tree. Read moreSource§fn message(
&self,
(): &mut Self::ViewState,
message: &mut MessageContext,
_element: Mut<'_, Self::Element>,
_app_state: &mut State,
) -> MessageResult<Action>
fn message( &self, (): &mut Self::ViewState, message: &mut MessageContext, _element: Mut<'_, Self::Element>, _app_state: &mut State, ) -> MessageResult<Action>
Route
message to id_path, if that is still a valid path.impl ViewMarker for ProgressBar
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnsafeUnpin for ProgressBar
impl UnwindSafe for ProgressBar
Blanket Implementations§
Source§impl<State, Action, Context, DynamicElement, V> AnyView<State, Action, Context, DynamicElement> for Vwhere
DynamicElement: AnyElement<<V as View<State, Action, Context>>::Element, Context>,
Context: ViewPathTracker,
V: View<State, Action, Context> + 'static,
<V as View<State, Action, Context>>::ViewState: 'static,
impl<State, Action, Context, DynamicElement, V> AnyView<State, Action, Context, DynamicElement> for Vwhere
DynamicElement: AnyElement<<V as View<State, Action, Context>>::Element, Context>,
Context: ViewPathTracker,
V: View<State, Action, Context> + 'static,
<V as View<State, Action, Context>>::ViewState: 'static,
Source§fn dyn_build(
&self,
ctx: &mut Context,
app_state: &mut State,
) -> (DynamicElement, AnyViewState)
fn dyn_build( &self, ctx: &mut Context, app_state: &mut State, ) -> (DynamicElement, AnyViewState)
Type erased
View::build.Source§fn dyn_rebuild(
&self,
dyn_state: &mut AnyViewState,
ctx: &mut Context,
prev: &dyn AnyView<State, Action, Context, DynamicElement>,
element: <DynamicElement as ViewElement>::Mut<'_>,
app_state: &mut State,
)
fn dyn_rebuild( &self, dyn_state: &mut AnyViewState, ctx: &mut Context, prev: &dyn AnyView<State, Action, Context, DynamicElement>, element: <DynamicElement as ViewElement>::Mut<'_>, app_state: &mut State, )
Type erased
View::rebuild.Source§fn dyn_teardown<'el>(
&self,
dyn_state: &mut AnyViewState,
ctx: &mut Context,
element: <DynamicElement as ViewElement>::Mut<'el>,
) -> <DynamicElement as ViewElement>::Mut<'el>
fn dyn_teardown<'el>( &self, dyn_state: &mut AnyViewState, ctx: &mut Context, element: <DynamicElement as ViewElement>::Mut<'el>, ) -> <DynamicElement as ViewElement>::Mut<'el>
Type erased
View::teardown. Read moreSource§fn dyn_message(
&self,
dyn_state: &mut AnyViewState,
message: &mut MessageContext,
element: <DynamicElement as ViewElement>::Mut<'_>,
app_state: &mut State,
) -> MessageResult<Action>
fn dyn_message( &self, dyn_state: &mut AnyViewState, message: &mut MessageContext, element: <DynamicElement as ViewElement>::Mut<'_>, app_state: &mut State, ) -> MessageResult<Action>
Type erased
View::message.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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<State, Action, V> FlexExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
impl<State, Action, V> FlexExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
Source§fn flex(self, params: impl Into<FlexParams>) -> FlexItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
fn flex(self, params: impl Into<FlexParams>) -> FlexItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
Source§fn into_any_flex(self) -> AnyFlexChild<State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
fn into_any_flex(self) -> AnyFlexChild<State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
Turns this
WidgetView into an AnyFlexChild,
which can be used interchangeably with an FlexSpacer, as child of a Flex View Read moreimpl<Seq, State, Action> FlexSequence<State, Action> for Seq
Source§impl<State, Action, V> GridExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
impl<State, Action, V> GridExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
Source§fn grid_item(
self,
params: impl Into<GridParams>,
) -> GridItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
fn grid_item(
self,
params: impl Into<GridParams>,
) -> GridItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
Applies
impl Into<GridParams> to this view. This allows the view
to be placed as a child within a Grid View. Read moreSource§fn grid_pos(self, x: i32, y: i32) -> GridItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
fn grid_pos(self, x: i32, y: i32) -> GridItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
Applies a
impl Into<GridParams> with the specified position to this view.
This allows the view to be placed as a child within a Grid View.
For instances where a grid item is expected to take up multiple cell units,
use GridExt::grid_item Read moreimpl<Seq, State, Action> GridSequence<State, Action> for Seq
impl<Seq, State, Action> IndexedStackSequence<State, Action> for Seq
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<State, Action, V> Style<State, Action> for Vwhere
State: 'static,
Action: 'static,
V: WidgetView<State, Action>,
impl<State, Action, V> Style<State, Action> for Vwhere
State: 'static,
Action: 'static,
V: WidgetView<State, Action>,
Source§fn color(self, color: Color) -> Prop<ContentColor, Self, State, Action>
fn color(self, color: Color) -> Prop<ContentColor, Self, State, Action>
Set the element’s content color. Read more
Source§fn disabled_color(
self,
color: Color,
) -> Prop<DisabledContentColor, Self, State, Action>
fn disabled_color( self, color: Color, ) -> Prop<DisabledContentColor, Self, State, Action>
Set the element’s content color when disabled. Read more
Source§fn background(
self,
background: Background,
) -> Prop<Background, Self, State, Action>
fn background( self, background: Background, ) -> Prop<Background, Self, State, Action>
Set the element’s background to a color/gradient.
Source§fn background_color(self, color: Color) -> Prop<Background, Self, State, Action>
fn background_color(self, color: Color) -> Prop<Background, Self, State, Action>
Set the element’s background to a color.
Source§fn background_gradient(
self,
gradient: Gradient,
) -> Prop<Background, Self, State, Action>
fn background_gradient( self, gradient: Gradient, ) -> Prop<Background, Self, State, Action>
Set the element’s background to a gradient.
Source§fn active_background(
self,
background: Background,
) -> Prop<ActiveBackground, Self, State, Action>
fn active_background( self, background: Background, ) -> Prop<ActiveBackground, Self, State, Action>
Set the element’s background when pressed to a color/gradient.
Source§fn active_background_color(
self,
color: Color,
) -> Prop<ActiveBackground, Self, State, Action>
fn active_background_color( self, color: Color, ) -> Prop<ActiveBackground, Self, State, Action>
Set the element’s background when pressed to a color.
Source§fn active_background_gradient(
self,
gradient: Gradient,
) -> Prop<ActiveBackground, Self, State, Action>
fn active_background_gradient( self, gradient: Gradient, ) -> Prop<ActiveBackground, Self, State, Action>
Set the element’s background when pressed to a gradient.
Source§fn disabled_background(
self,
background: Background,
) -> Prop<DisabledBackground, Self, State, Action>
fn disabled_background( self, background: Background, ) -> Prop<DisabledBackground, Self, State, Action>
Set the element’s background when disabled to a color/gradient.
Source§fn disabled_background_color(
self,
color: Color,
) -> Prop<DisabledBackground, Self, State, Action>
fn disabled_background_color( self, color: Color, ) -> Prop<DisabledBackground, Self, State, Action>
Set the element’s background when disabled to a color.
Source§fn disabled_background_gradient(
self,
gradient: Gradient,
) -> Prop<DisabledBackground, Self, State, Action>
fn disabled_background_gradient( self, gradient: Gradient, ) -> Prop<DisabledBackground, Self, State, Action>
Set the element’s background when disabled to a gradient.
Source§fn border(
self,
color: Color,
width: f64,
) -> Prop<BorderWidth, Prop<BorderColor, Self, State, Action>, State, Action>
fn border( self, color: Color, width: f64, ) -> Prop<BorderWidth, Prop<BorderColor, Self, State, Action>, State, Action>
Set the element’s border color and width.
Source§fn border_color(self, color: Color) -> Prop<BorderColor, Self, State, Action>
fn border_color(self, color: Color) -> Prop<BorderColor, Self, State, Action>
Set the element’s border color.
Source§fn hovered_border_color(
self,
color: Color,
) -> Prop<HoveredBorderColor, Self, State, Action>
fn hovered_border_color( self, color: Color, ) -> Prop<HoveredBorderColor, Self, State, Action>
Set the element’s border color when hovered.
Source§fn border_width(self, width: f64) -> Prop<BorderWidth, Self, State, Action>
fn border_width(self, width: f64) -> Prop<BorderWidth, Self, State, Action>
Set the element’s border width.
Source§fn box_shadow(
self,
box_shadow: BoxShadow,
) -> Prop<BoxShadow, Self, State, Action>
fn box_shadow( self, box_shadow: BoxShadow, ) -> Prop<BoxShadow, Self, State, Action>
Set the element’s box shadow.
Source§fn corner_radius(self, radius: f64) -> Prop<CornerRadius, Self, State, Action>
fn corner_radius(self, radius: f64) -> Prop<CornerRadius, Self, State, Action>
Set the element’s corner radius.
Source§fn padding(
self,
padding: impl Into<Padding>,
) -> Prop<Padding, Self, State, Action>
fn padding( self, padding: impl Into<Padding>, ) -> Prop<Padding, Self, State, Action>
Set the element’s padding.
Source§fn line_break_mode(
self,
line_break_mode: LineBreaking,
) -> Prop<LineBreaking, Self, State, Action>
fn line_break_mode( self, line_break_mode: LineBreaking, ) -> Prop<LineBreaking, Self, State, Action>
Set how line breaks will be handled when text overflows the available space.
impl<T> WasmNotSend for Twhere
T: Send,
impl<T> WasmNotSendSync for Twhere
T: WasmNotSend + WasmNotSync,
impl<T> WasmNotSync for Twhere
T: Sync,
Source§impl<V, State, Action, W> WidgetView<State, Action> for V
impl<V, State, Action, W> WidgetView<State, Action> for V
type Widget = W
Source§fn boxed(self) -> Box<AnyWidgetView<State, Action>>where
State: 'static,
Action: 'static,
Self: Sized,
fn boxed(self) -> Box<AnyWidgetView<State, Action>>where
State: 'static,
Action: 'static,
Self: Sized,
Returns a boxed type erased
AnyWidgetView Read moreimpl<Seq, State, Action> WidgetViewSequence<State, Action> for Seq
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<State, Action, V> ZStackExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
impl<State, Action, V> ZStackExt<State, Action> for Vwhere
V: WidgetView<State, Action>,
Source§fn alignment(
self,
alignment: impl Into<ChildAlignment>,
) -> ZStackItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
fn alignment(
self,
alignment: impl Into<ChildAlignment>,
) -> ZStackItem<Self, State, Action>where
State: 'static,
Action: 'static,
Self: Sized,
Applies
ChildAlignment to this view.
This allows the view to override the default alignment of the parent ZStack.
This can only be used on views that are direct children of a ZStack.