From 62e382a1db72512a7994d50941226f92ad3c26e3 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 1 Dec 2018 11:47:00 -0800 Subject: [PATCH 1/4] Pulled master from Gekkio/imgui-rs --- imgui-sys/third-party/cimgui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-sys/third-party/cimgui b/imgui-sys/third-party/cimgui index 204f282..3efb100 160000 --- a/imgui-sys/third-party/cimgui +++ b/imgui-sys/third-party/cimgui @@ -1 +1 @@ -Subproject commit 204f2828bb81857ffa4b9e2dbc360eabbb7cbd25 +Subproject commit 3efb1001aa4639676b5626eaaf2c58e1370be3b2 From d61e69eee2ea68b88744ef3418594d2cfba99d01 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 1 Dec 2018 12:05:35 -0800 Subject: [PATCH 2/4] Fixed cimgui version --- imgui-sys/third-party/cimgui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-sys/third-party/cimgui b/imgui-sys/third-party/cimgui index 3efb100..204f282 160000 --- a/imgui-sys/third-party/cimgui +++ b/imgui-sys/third-party/cimgui @@ -1 +1 @@ -Subproject commit 3efb1001aa4639676b5626eaaf2c58e1370be3b2 +Subproject commit 204f2828bb81857ffa4b9e2dbc360eabbb7cbd25 From cd2f7570e620cfb24e49a4cd3dd9c456ec6f9ba4 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Thu, 13 Dec 2018 22:00:24 -0800 Subject: [PATCH 3/4] Added is_item_hovered_with_flags --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 810f952..7837180 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()) } From 17b82e5cbb7a66d011ef7e6a778b0fa413f8ab78 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Fri, 14 Dec 2018 00:22:12 -0800 Subject: [PATCH 4/4] 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) }