mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +00:00
Formatted with rustfmt.
This commit is contained in:
parent
f98f11fabb
commit
e685037314
@ -35,7 +35,7 @@ impl<'p> ProgressBar<'p> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the size of the progress bar. Negative values will automatically
|
/// 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
|
/// align to the end of the axis, zero will let the progress bar choose a
|
||||||
/// size and positive values will use the given size.
|
/// size and positive values will use the given size.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn size(mut self, size: ImVec2) -> Self {
|
pub fn size(mut self, size: ImVec2) -> Self {
|
||||||
@ -49,8 +49,7 @@ impl<'p> ProgressBar<'p> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
imgui_sys::igProgressBar(self.fraction,
|
imgui_sys::igProgressBar(self.fraction,
|
||||||
&self.size,
|
&self.size,
|
||||||
self.overlay_text.map(|x| x.as_ptr()).unwrap_or(ptr::null())
|
self.overlay_text.map(|x| x.as_ptr()).unwrap_or(ptr::null()));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user