[−][src]Struct imgui::ProgressBar
Progress bar widget.
Methods
impl<'ui, 'p> ProgressBar<'ui, 'p>
[src]
pub fn new(_: &Ui<'ui>, fraction: f32) -> Self
[src]
Creates a progress bar with a given fraction showing the progress (0.0 = 0%, 1.0 = 100%). The progress bar will be automatically sized to fill the entire width of the window if no custom size is specified.
pub fn overlay_text(self, overlay_text: &'p ImStr) -> Self
[src]
Sets an optional text that will be drawn over the progress bar.
pub fn size(self, size: [f32; 2]) -> Self
[src]
Sets the size of the progress bar. Negative values will automatically align to the end of the axis, zero will let the progress bar choose a size and positive values will use the given size.
pub fn build(self)
[src]
Builds the progress bar. This has to be called after setting all parameters of the progress bar, otherwise the it will not be shown.
Auto Trait Implementations
impl<'ui, 'p> !Send for ProgressBar<'ui, 'p>
impl<'ui, 'p> Unpin for ProgressBar<'ui, 'p>
impl<'ui, 'p> !Sync for ProgressBar<'ui, 'p>
impl<'ui, 'p> !UnwindSafe for ProgressBar<'ui, 'p>
impl<'ui, 'p> !RefUnwindSafe for ProgressBar<'ui, 'p>
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,