mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +00:00
Added is_window_hovered_with_flags
This commit is contained in:
parent
cd2f7570e6
commit
17b82e5cbb
@ -1604,6 +1604,10 @@ impl<'ui> Ui<'ui> {
|
|||||||
unsafe { sys::igIsWindowHovered(ImGuiHoveredFlags::empty()) }
|
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.
|
/// Return `true` if the current window is currently focused.
|
||||||
pub fn is_window_focused(&self) -> bool {
|
pub fn is_window_focused(&self) -> bool {
|
||||||
unsafe { sys::igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows) }
|
unsafe { sys::igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user