on_mouse_click

Function on_mouse_click 

Source
pub fn on_mouse_click(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&MouseClickArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

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

ยงRoute

This event property uses the normal route, that is, the handler is called after the children widget handlers and after the $pn_pre_ident handlers.