mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-16 07:58:33 +00:00
Ui: Add safe wrapper "is_window_hovered"
This commit is contained in:
parent
e374eb9f55
commit
6f2b1d76b4
@ -1324,6 +1324,11 @@ impl<'ui> Ui<'ui> {
|
||||
unsafe { sys::igIsItemHovered(ImGuiHoveredFlags::empty()) }
|
||||
}
|
||||
|
||||
/// Return `true` if the current window is being hovered by the mouse.
|
||||
pub fn is_window_hovered(&self) -> bool {
|
||||
unsafe { sys::igIsWindowHovered(ImGuiHoveredFlags::empty()) }
|
||||
}
|
||||
|
||||
/// Returns `true` if the last item is being active.
|
||||
pub fn is_item_active(&self) -> bool {
|
||||
unsafe {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user