zng::gesture

Function on_any_click

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

P On widget click from any source and of any click count and the widget is enabled.

This is the most general click handler, it raises for all possible sources of the CLICK_EVENT and any number of consecutive clicks. Use on_click to handle only primary button clicks or on_any_single_click to not include double/triple clicks.

§Preview

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