mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-27 05:18:27 +00:00
implement columns
This commit is contained in:
parent
ac5d8cfcd1
commit
3019f15b92
33
src/lib.rs
33
src/lib.rs
@ -398,8 +398,41 @@ impl<'ui> Ui<'ui> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn spacing(&self) { unsafe { imgui_sys::igSpacing() }; }
|
pub fn spacing(&self) { unsafe { imgui_sys::igSpacing() }; }
|
||||||
|
|
||||||
|
|
||||||
|
pub fn columns(&self, i: i32, b: *const i8, b2: bool){
|
||||||
|
unsafe { imgui_sys::igColumns(i, b, b2 ) };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn next_column(&self) {
|
||||||
|
unsafe { imgui_sys::igNextColumn() };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_column_index(&self) {
|
||||||
|
unsafe { imgui_sys::igGetColumnIndex() };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_column_offset(&self, i: i32) {
|
||||||
|
unsafe { imgui_sys::igGetColumnOffset(i) };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn set_column_offset(&self, column_index: i32, offset_x: f32) {
|
||||||
|
unsafe { imgui_sys::igSetColumnOffset(column_index, offset_x ) };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_column_width(&self, i: i32) {
|
||||||
|
unsafe { imgui_sys::igGetColumnWidth(i) };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_columns_count(&self) {
|
||||||
|
unsafe { imgui_sys::igGetColumnsCount() };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Widgets
|
// Widgets
|
||||||
impl<'ui> Ui<'ui> {
|
impl<'ui> Ui<'ui> {
|
||||||
pub fn text<'p>(&self, text: ImStr<'p>) {
|
pub fn text<'p>(&self, text: ImStr<'p>) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user