Added is_item_hovered_with_flags

This commit is contained in:
Antoine Gersant 2018-12-13 22:00:24 -08:00
parent d61e69eee2
commit cd2f7570e6

View File

@ -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()) }