Struct native_windows_gui::ProgressBarT
[−]
[src]
pub struct ProgressBarT<ID: Hash + Clone> { pub position: (i32, i32), pub size: (u32, u32), pub visible: bool, pub disabled: bool, pub range: (u32, u32), pub value: u32, pub step: u32, pub state: ProgressBarState, pub vertical: bool, pub parent: ID, }
A template that creates a progress bar
Events:
Event::Destroyed, Event::Moved, Event::Resized, Event::Raw
Members:
• position
: The start position of the progressbar
• size
: The start size of the progressbar
• visible
: If the progressbar should be visible to the user
• disabled
: If the user can or can't click on the progressbar
• range
: The minimum and the maximum value of the progress bar
• position
: The starting position of the progress bar
• step
: Amount of value to add when step
is called
• state
: The state of the progress bar.
• vertical
: If the progress bar should be vertical instead of horizontal
• parent
: The progressbar parent
Fields
position: (i32, i32)
size: (u32, u32)
visible: bool
disabled: bool
range: (u32, u32)
value: u32
step: u32
state: ProgressBarState
vertical: bool
parent: ID
Trait Implementations
impl<ID: Clone + Hash + Clone> Clone for ProgressBarT<ID>
[src]
fn clone(&self) -> ProgressBarT<ID>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<ID: Hash + Clone> ControlT<ID> for ProgressBarT<ID>
[src]
fn type_id(&self) -> TypeId
Should return the TypeId of the generated control. For example a WindowT
struct returns the TypeId of a Window
struct.
fn events(&self) -> Vec<Event>
Should return the events supported by the control.
fn build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>
Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit
.