From ba681d2e823b836562c011645d2369609abbd2c0 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Mon, 1 Jul 2019 00:10:21 +0300 Subject: [PATCH] Reformat --- imgui-examples/examples/test_window_impl.rs | 36 +++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/imgui-examples/examples/test_window_impl.rs b/imgui-examples/examples/test_window_impl.rs index c19327a..ba11d11 100644 --- a/imgui-examples/examples/test_window_impl.rs +++ b/imgui-examples/examples/test_window_impl.rs @@ -802,23 +802,25 @@ fn show_example_app_fixed_overlay(ui: &Ui, opened: &mut bool) { const DISTANCE: f32 = 10.0; let window_pos = [DISTANCE, DISTANCE]; let _token = ui.push_style_color(StyleColor::WindowBg, [0.0, 0.0, 0.0, 0.3]); - ui.window(im_str!("Example: Fixed Overlay")) - .opened(opened) - .position(window_pos, Condition::Always) - .title_bar(false) - .resizable(false) - .always_auto_resize(true) - .movable(false) - .save_settings(false) - .build(|| { - ui.text("Simple overlay\nin the corner of the screen.\n(right-click to change position)"); - ui.separator(); - let mouse_pos = ui.io().mouse_pos; - ui.text(format!( - "Mouse Position: ({:.1},{:.1})", - mouse_pos[0], mouse_pos[1] - )); - }) + ui.window(im_str!("Example: Fixed Overlay")) + .opened(opened) + .position(window_pos, Condition::Always) + .title_bar(false) + .resizable(false) + .always_auto_resize(true) + .movable(false) + .save_settings(false) + .build(|| { + ui.text( + "Simple overlay\nin the corner of the screen.\n(right-click to change position)", + ); + ui.separator(); + let mouse_pos = ui.io().mouse_pos; + ui.text(format!( + "Mouse Position: ({:.1},{:.1})", + mouse_pos[0], mouse_pos[1] + )); + }) } fn show_example_app_manipulating_window_title(ui: &Ui) {