diff --git a/src/input/mouse.rs b/src/input/mouse.rs index 7605ae1..895d56a 100644 --- a/src/input/mouse.rs +++ b/src/input/mouse.rs @@ -114,7 +114,7 @@ impl<'ui> Ui<'ui> { /// /// Clipped by current clipping settings, but disregards other factors like focus, window /// ordering, modal popup blocking. - pub fn is_mouse_hovering_rect(r_min: [f32; 2], r_max: [f32; 2]) -> bool { + pub fn is_mouse_hovering_rect(&self, r_min: [f32; 2], r_max: [f32; 2]) -> bool { unsafe { sys::igIsMouseHoveringRect(r_min.into(), r_max.into(), true) } } /// Returns the mouse position backed up at the time of opening a popup