From b7295ae9ae8e21c72367ceb05c95e5017ff78d15 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Wed, 26 Aug 2015 12:00:44 +0100 Subject: [PATCH] Small button --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 297650f..df8ba7e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) }