zng::mouse

Function on_mouse_any_click

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

P Mouse clicked on the widget with any button and including repeat clicks and it is enabled.

§Preview

You can preview this event using on_pre_mouse_any_click. 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.