Function zng::mouse::on_mouse_single_click

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

P Mouse clicked on the widget with the primary button excluding repeat clicks and it is enabled.

§Preview

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