mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
[ImGui] Wrap igGetWindowPos
This commit is contained in:
parent
c2f3936879
commit
d62845f4c2
@ -604,6 +604,14 @@ impl<'ui> Ui<'ui> {
|
||||
}
|
||||
(out.x, out.y)
|
||||
}
|
||||
/// Get current window's position in pixels
|
||||
pub fn get_window_pos(&self) -> (f32, f32) {
|
||||
let mut out = ImVec2::new(0.0, 0.0);
|
||||
unsafe {
|
||||
sys::igGetWindowPos(&mut out);
|
||||
}
|
||||
(out.x, out.y)
|
||||
}
|
||||
}
|
||||
|
||||
// Layout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user