From 8af46b4a22bf42372ffd0942c2bf70d9f02bd30e Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Mon, 8 Jul 2019 18:28:31 +0300 Subject: [PATCH] Add missing self parameter --- src/input/mouse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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