From 17b82e5cbb7a66d011ef7e6a778b0fa413f8ab78 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Fri, 14 Dec 2018 00:22:12 -0800 Subject: [PATCH] Added is_window_hovered_with_flags --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 7837180..fdf33fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1604,6 +1604,10 @@ impl<'ui> Ui<'ui> { unsafe { sys::igIsWindowHovered(ImGuiHoveredFlags::empty()) } } + pub fn is_window_hovered_with_flags(&self, flags: ImGuiHoveredFlags) -> bool { + unsafe { sys::igIsWindowHovered(flags) } + } + /// Return `true` if the current window is currently focused. pub fn is_window_focused(&self) -> bool { unsafe { sys::igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows) }