imgui: Ui: Add is_item_active

This commit is contained in:
Malik Olivier Boussejra 2018-03-26 13:38:24 +09:00
parent abbbfdfa79
commit 72ddc788b1

View File

@ -1099,4 +1099,11 @@ impl<'ui> Ui<'ui> {
pub fn is_item_hovered(&self) -> bool {
unsafe { sys::igIsItemHovered(ImGuiHoveredFlags::empty()) }
}
/// Returns `true` if the last item is being active.
pub fn is_item_active(&self) -> bool {
unsafe {
sys::igIsItemActive()
}
}
}