Add missing self parameter

This commit is contained in:
Joonas Javanainen 2019-07-08 18:28:31 +03:00
parent 0132ab5207
commit 8af46b4a22
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -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