From a60465cd4093d7f4566fc111683c6dd9d11e37aa Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Thu, 29 Mar 2018 11:53:18 +0900 Subject: [PATCH] ui: Wrap dummy --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 40e7833..1e3a119 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -469,6 +469,13 @@ impl<'ui> Ui<'ui> { pub fn get_columns_count(&self) -> i32 { unsafe { sys::igGetColumnsCount() } } + /// Fill a space of `size` in pixels with nothing on the current window. + /// Can be used to move the cursor on the window. + pub fn dummy>(&self, size: S) { + let size = size.into(); + unsafe { sys::igDummy(&size) } + } + /// Get cursor position on the screen, in screen coordinates. /// This sets the point on which the next widget will be drawn. ///