ui: Wrap dummy

This commit is contained in:
Malik Olivier Boussejra 2018-03-29 11:53:18 +09:00
parent 4358360d47
commit a60465cd40

View File

@ -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<S: Into<ImVec2>>(&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.
///