Struct pixel_widgets::widget::progress::Progress [−][src]
pub struct Progress<'a, T> { /* fields omitted */ }Expand description
A progress bar that fill up according to some progress
The bar part of the progress bar can be styled by selecting the child widget bar of the progress widget.
Progress accepts the clip-bar flag for it’s style. When the clip-bar flag is set, the bar is always rendered
at full size and then clipped according to the progress. When clip-bar is not set, the bar itself is rendered
with a size that matches the progress.
Implementations
Trait Implementations
Convenience function that converts to a node and then adds a style class to the resulting Node.
The name of this widget, used to identify widgets of this type in stylesheets.
Should return the amount of children this widget has. Must be consistent with
visit_children(). Read more
Draw the widget. Returns a list of Primitives that should be drawn. Read more
The state of this widget, used for computing the style.
If None is returned, Node will automatically compute a state, such as “hover” and “pressed”. Read more
Returns whether this children has no children. Must be consistent with
visit_children(). Read more
Test the widget for focus exclusivity.
If the widget or one of it’s descendants is in an exclusive focus state, this function should return true.
In all other cases, it should return false. When a widget is in an exclusive focus state it is
the only widget that is allowed to receive events in event.
Widgets that intended to use this behaviour are modal dialogs, dropdown boxes, context menu’s, etc. Read more