mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +00:00
Revert "imgui: Add get_window_width, get_window_height helper functions"
This reverts commit 0d10358942409cf8fad6fcb730dbedfbd7149df7. `get_window_size` already exists and it's very easy to get just one of the dimentions. As a result, delete get_window_width and get_window_height.
This commit is contained in:
parent
0d10358942
commit
4ccae8bc10
12
src/lib.rs
12
src/lib.rs
@ -392,18 +392,6 @@ impl<'ui> Ui<'ui> {
|
|||||||
}
|
}
|
||||||
(out.x, out.y)
|
(out.x, out.y)
|
||||||
}
|
}
|
||||||
/// Get current window's width in pixels
|
|
||||||
pub fn get_window_width(&self) -> f32 {
|
|
||||||
unsafe {
|
|
||||||
sys::igGetWindowWidth()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/// Get current window's height in pixels
|
|
||||||
pub fn get_window_height(&self) -> f32 {
|
|
||||||
unsafe {
|
|
||||||
sys::igGetWindowHeight()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user