mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-23 03:18:34 +00:00
Exposed button function.
Size must be specified versus using the builder pattern.
This commit is contained in:
parent
cbe8df8174
commit
bb0d712cac
@ -478,6 +478,9 @@ impl<'ui> Ui<'ui> {
|
|||||||
imgui_sys::igBulletText(fmt_ptr(), text.as_ptr());
|
imgui_sys::igBulletText(fmt_ptr(), text.as_ptr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pub fn button<'p>(&self, label: ImStr<'p>, size: ImVec2) -> bool {
|
||||||
|
unsafe { imgui_sys::igButton(label.as_ptr(), size) }
|
||||||
|
}
|
||||||
pub fn small_button<'p>(&self, label: ImStr<'p>) -> bool {
|
pub fn small_button<'p>(&self, label: ImStr<'p>) -> bool {
|
||||||
unsafe { imgui_sys::igSmallButton(label.as_ptr()) }
|
unsafe { imgui_sys::igSmallButton(label.as_ptr()) }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user