Merge pull request #124 from malikolivier/wrap-is_window_hovered

Ui: Add safe wrapper "is_window_hovered"
This commit is contained in:
Joonas Javanainen 2018-05-30 07:59:57 +03:00 committed by GitHub
commit 8b159c848f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1324,6 +1324,11 @@ impl<'ui> Ui<'ui> {
unsafe { sys::igIsItemHovered(ImGuiHoveredFlags::empty()) }
}
/// Return `true` if the current window is being hovered by the mouse.
pub fn is_window_hovered(&self) -> bool {
unsafe { sys::igIsWindowHovered(ImGuiHoveredFlags::empty()) }
}
/// Returns `true` if the last item is being active.
pub fn is_item_active(&self) -> bool {
unsafe {