zng::mouse

Function on_mouse_move

source
pub fn on_mouse_move(
    child: impl UiNode,
    handler: impl WidgetHandler<MouseMoveArgs>,
) -> impl UiNode
Expand description

P Mouse cursor moved over the widget and cursor capture allows it.

§Preview

You can preview this event using on_pre_mouse_move. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.