mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Small button
This commit is contained in:
parent
a62e6ac146
commit
b7295ae9ae
@ -288,6 +288,11 @@ impl<'ui> Ui<'ui> {
|
||||
imgui_sys::igBulletText(fmt_ptr(), text.as_ptr());
|
||||
}
|
||||
}
|
||||
pub fn small_button<'p>(&self, label: ImStr<'p>) -> bool {
|
||||
unsafe {
|
||||
imgui_sys::igSmallButton(label.as_ptr())
|
||||
}
|
||||
}
|
||||
pub fn collapsing_header<'p>(&self, label: ImStr<'p>) -> CollapsingHeader<'ui, 'p> {
|
||||
CollapsingHeader::new(label)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user