mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Fixed compile error in example.
This commit is contained in:
parent
e685037314
commit
fa2ba7f69c
@ -675,7 +675,10 @@ impl<'ui> Ui<'ui> {
|
||||
/// Creates a progress bar. Fraction is the progress level with 0.0 = 0% and 1.0 = 100%.
|
||||
///
|
||||
/// # Example
|
||||
/// ```no_run
|
||||
/// ```rust,no_run
|
||||
/// # use imgui::*;
|
||||
/// # let mut imgui = ImGui::init();
|
||||
/// # let ui = imgui.frame((0, 0), (0, 0), 0.1);
|
||||
/// ui.progress_bar(0.6)
|
||||
/// .size(imgui::ImVec2::new(100.0, 12.0))
|
||||
/// .overlay_text(im_str!("Progress!"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user