[−][src]Struct guion::widgets::pbar::ProgressBar
Fields
size: ESize<E>
style: Vec<StdVerb>
border: Option<Border>
value: f32
orientation: Orientation
Methods
impl<E> ProgressBar<E> where
E: Env,
[src]
E: Env,
pub fn new(id: E::WidgetID, o: Orientation) -> Self
[src]
pub fn with_size(self, s: ESize<E>) -> Self
[src]
pub fn with_value(self, v: f32) -> Self
[src]
Trait Implementations
impl<'w, E> Widget<'w, E> for ProgressBar<E> where
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
[src]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
fn id(&self) -> E::WidgetID
[src]
fn render(&self, _: Link<E>, r: &mut RenderLink<E>) -> bool
[src]
fn event(&self, _: Link<E>, _: (EEvent<E>, &Bounds, u64))
[src]
fn size(&self, _: Link<E>) -> ESize<E>
[src]
fn childs(&self) -> usize
[src]
fn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>> where
'w: 's,
[src]
'w: 's,
fn into_childs(self: Box<Self>) -> Vec<Resolvable<'w, E>>
[src]
fn _trace_bounds(
&self,
_: Link<E>,
_: usize,
_: &Bounds,
_: bool
) -> Result<Bounds, ()>
[src]
&self,
_: Link<E>,
_: usize,
_: &Bounds,
_: bool
) -> Result<Bounds, ()>
fn focusable(&self) -> bool
[src]
fn border(&self, b: &mut Border)
[src]
fn style(&self, s: &mut ESVariant<E>)
[src]
fn child<'a>(&'a self, _: usize) -> Result<Resolvable<'a, E>, ()> where
'w: 'a,
[src]
'w: 'a,
fn into_child(self: Box<Self>, _: usize) -> Result<Resolvable<'w, E>, ()>
[src]
fn invalid(&self) -> bool
[src]
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
[src]
fn resolve<'s>(&'s self, i: E::WidgetPath) -> Result<Resolvable<'s, E>, ()> where
'w: 's,
[src]
'w: 's,
fn into_resolve(
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, ()>
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, ()>
fn resolve_child(&self, p: &EWPSub<E>) -> Result<usize, ()>
[src]
fn trace_bounds(
&self,
l: Link<E>,
i: E::WidgetPath,
b: &Bounds,
force: bool
) -> Result<Bounds, ()>
[src]
&self,
l: Link<E>,
i: E::WidgetPath,
b: &Bounds,
force: bool
) -> Result<Bounds, ()>
fn self_in_parent(&self, parent: E::WidgetPath) -> E::WidgetPath
[src]
fn is_subpath(&self, p: &EWPSub<E>) -> bool
[src]
fn _focus_on_mouse_down(&self) -> bool
[src]
fn _tabulate_by_tab(&self) -> bool
[src]
fn inner<'s>(&'s self) -> Option<&'s dyn Widget<'w, E>>
[src]
fn debug_type_name(&self)
[src]
impl<'w, E> WidgetMut<'w, E> for ProgressBar<E> where
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
[src]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
fn childs_mut<'s>(&'s mut self) -> Vec<ResolvableMut<'s, E>> where
'w: 's,
[src]
'w: 's,
fn into_childs_mut(self: Box<Self>) -> Vec<ResolvableMut<'w, E>>
[src]
fn child_mut<'a>(&'a mut self, _: usize) -> Result<ResolvableMut<'a, E>, ()> where
'w: 'a,
[src]
'w: 'a,
fn into_child_mut(self: Box<Self>, _: usize) -> Result<ResolvableMut<'w, E>, ()>
[src]
fn set_invalid(&mut self, v: bool)
[src]
fn resolve_mut<'s>(
&'s mut self,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'s, E>, ()> where
'w: 's,
[src]
&'s mut self,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'s, E>, ()> where
'w: 's,
fn into_resolve_mut(
self: Box<Self>,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'w, E>, ()>
[src]
self: Box<Self>,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'w, E>, ()>
fn inner_mut<'s>(&'s mut self) -> Option<&'s mut dyn WidgetMut<'w, E>>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for ProgressBar<E> where
<<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
<E as Env>::WidgetID: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
<E as Env>::WidgetID: RefUnwindSafe,
impl<E> Send for ProgressBar<E> where
<<E as Env>::Backend as Backend<E>>::Size: Send,
<E as Env>::WidgetID: Send,
<<E as Env>::Backend as Backend<E>>::Size: Send,
<E as Env>::WidgetID: Send,
impl<E> Sync for ProgressBar<E> where
<<E as Env>::Backend as Backend<E>>::Size: Sync,
<E as Env>::WidgetID: Sync,
<<E as Env>::Backend as Backend<E>>::Size: Sync,
<E as Env>::WidgetID: Sync,
impl<E> Unpin for ProgressBar<E> where
<<E as Env>::Backend as Backend<E>>::Size: Unpin,
<E as Env>::WidgetID: Unpin,
<<E as Env>::Backend as Backend<E>>::Size: Unpin,
<E as Env>::WidgetID: Unpin,
impl<E> UnwindSafe for ProgressBar<E> where
<<E as Env>::Backend as Backend<E>>::Size: UnwindSafe,
<E as Env>::WidgetID: UnwindSafe,
<<E as Env>::Backend as Backend<E>>::Size: UnwindSafe,
<E as Env>::WidgetID: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'w, E, T> AsWidget<'w, E> for T where
E: Env,
T: Widget<'w, E>,
[src]
E: Env,
T: Widget<'w, E>,
fn as_ref<'s>(&'s Self) -> Resolvable<'s, E> where
'w: 's,
[src]
'w: 's,
fn into_ref(Self) -> Resolvable<'w, E>
[src]
impl<'w, E, T> AsWidgetMut<'w, E> for T where
E: Env,
T: WidgetMut<'w, E>,
[src]
E: Env,
T: WidgetMut<'w, E>,
fn as_mut<'s>(&'s mut Self) -> ResolvableMut<'s, E> where
'w: 's,
[src]
'w: 's,
fn into_mut(Self) -> ResolvableMut<'w, E>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,