1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::sys;
use crate::Ui;
impl<'ui> Ui<'ui> {
pub fn content_region_max(&self) -> [f32; 2] {
unsafe { sys::igGetContentRegionMax_nonUDT2().into() }
}
pub fn content_region_avail(&self) -> [f32; 2] {
unsafe { sys::igGetContentRegionAvail_nonUDT2().into() }
}
pub fn window_content_region_min(&self) -> [f32; 2] {
unsafe { sys::igGetWindowContentRegionMin_nonUDT2().into() }
}
pub fn window_content_region_max(&self) -> [f32; 2] {
unsafe { sys::igGetWindowContentRegionMax_nonUDT2().into() }
}
pub fn window_content_region_width(&self) -> f32 {
unsafe { sys::igGetWindowContentRegionWidth() }
}
}