mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-12 05:58:35 +00:00
Added is_item_hovered_with_flags
This commit is contained in:
parent
d61e69eee2
commit
cd2f7570e6
@ -1595,6 +1595,10 @@ impl<'ui> Ui<'ui> {
|
||||
unsafe { sys::igIsItemHovered(ImGuiHoveredFlags::empty()) }
|
||||
}
|
||||
|
||||
pub fn is_item_hovered_with_flags(&self, flags: ImGuiHoveredFlags) -> bool {
|
||||
unsafe { sys::igIsItemHovered(flags) }
|
||||
}
|
||||
|
||||
/// Return `true` if the current window is being hovered by the mouse.
|
||||
pub fn is_window_hovered(&self) -> bool {
|
||||
unsafe { sys::igIsWindowHovered(ImGuiHoveredFlags::empty()) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user