mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-19 17:38:28 +00:00
imgui: Ui: Add is_item_active
This commit is contained in:
parent
abbbfdfa79
commit
72ddc788b1
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user