mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-14 06:58:35 +00:00
ui: Wrap dummy
This commit is contained in:
parent
4358360d47
commit
a60465cd40
@ -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.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user