Struct arcdps_imgui::ProgressBar
source · pub struct ProgressBar<T = &'static str> { /* private fields */ }
Expand description
Builder for a progress bar widget.
§Examples
ProgressBar::new(0.6)
.size([100.0, 12.0])
.overlay_text("Progress!")
.build(&ui);
Implementations§
source§impl ProgressBar
impl ProgressBar
source§impl<T: AsRef<str>> ProgressBar<T>
impl<T: AsRef<str>> ProgressBar<T>
sourcepub fn overlay_text<T2: AsRef<str>>(self, overlay_text: T2) -> ProgressBar<T2>
pub fn overlay_text<T2: AsRef<str>>(self, overlay_text: T2) -> ProgressBar<T2>
Sets an optional text that will be drawn over the progress bar.
Trait Implementations§
source§impl<T: Clone> Clone for ProgressBar<T>
impl<T: Clone> Clone for ProgressBar<T>
source§fn clone(&self) -> ProgressBar<T>
fn clone(&self) -> ProgressBar<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ProgressBar<T>
impl<T: Debug> Debug for ProgressBar<T>
impl<T: Copy> Copy for ProgressBar<T>
Auto Trait Implementations§
impl<T> Freeze for ProgressBar<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProgressBar<T>where
T: RefUnwindSafe,
impl<T> Send for ProgressBar<T>where
T: Send,
impl<T> Sync for ProgressBar<T>where
T: Sync,
impl<T> Unpin for ProgressBar<T>where
T: Unpin,
impl<T> UnwindSafe for ProgressBar<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)