[][src]Struct native_windows_gui::ProgressBar

pub struct ProgressBar { /* fields omitted */ }

A standard progress bar

Methods

impl ProgressBar[src]

pub fn get_range(&self) -> (u32, u32)[src]

Return the current range of the progress bar

pub fn set_range(&self, min: u32, max: u32) -> Result<(), Error>[src]

Set the extent of the progress bar control. If min is bigger than max, an error will be returned.

pub fn get_step(&self) -> u32[src]

Return the current step of the progress bar

pub fn set_step(&self, step: u32)[src]

Set the step of the progress bar control. When step() is called, the progress bar value is increased by the value defined by step.

pub fn get_value(&self) -> u32[src]

Return the current value of the progress bar

pub fn set_value(&self, val: u32)[src]

Set the progress bar value

pub fn get_state(&self) -> ProgressBarState[src]

Get the progress bar state

pub fn set_state(&self, state: ProgressBarState)[src]

Set the progress bar state

pub fn step(&self)[src]

pub fn advance(&self, amount: u32)[src]

Add amount to the progress bar value

pub fn get_visibility(&self) -> bool[src]

pub fn set_visibility(&self, visible: bool)[src]

pub fn get_position(&self) -> (i32, i32)[src]

pub fn set_position(&self, x: i32, y: i32)[src]

pub fn get_size(&self) -> (u32, u32)[src]

pub fn set_size(&self, w: u32, h: u32)[src]

pub fn get_enabled(&self) -> bool[src]

pub fn set_enabled(&self, e: bool)[src]

Trait Implementations

impl Control for ProgressBar[src]

Auto Trait Implementations

impl !Send for ProgressBar

impl !Sync for ProgressBar

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]