Struct aflak_imgui::ProgressBar [−][src]
#[must_use]pub struct ProgressBar<'ui, 'p> { /* fields omitted */ }
Progress bar widget.
Methods
impl<'ui, 'p> ProgressBar<'ui, 'p>
[src]
impl<'ui, 'p> ProgressBar<'ui, 'p>
pub fn new(_: &Ui<'ui>, fraction: f32) -> Self
[src]
pub fn new(_: &Ui<'ui>, fraction: f32) -> Self
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]
pub fn overlay_text(self, overlay_text: &'p ImStr) -> Self
Sets an optional text that will be drawn over the progress bar.
pub fn size<S: Into<ImVec2>>(self, size: S) -> Self
[src]
pub fn size<S: Into<ImVec2>>(self, size: S) -> Self
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]
pub fn build(self)
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> !Send for ProgressBar<'ui, 'p>
impl<'ui, 'p> !Sync for ProgressBar<'ui, 'p>
impl<'ui, 'p> !Sync for ProgressBar<'ui, 'p>