Skip to main content

current_mouse_world

Function current_mouse_world 

Source
pub fn current_mouse_world() -> Option<Point>
Expand description

Retrieve the latest world-space mouse position. Widgets doing a drag gesture that needs invariance against ancestor-layout shifts (e.g. a nested Resize inside an auto-sized Window, where the window grows/shrinks as the user drags and moves the widget’s ancestor frame) should prefer this over the widget-local pos carried in Event::Mouse*.