Function zng_wgt_input::mouse::on_mouse_enter

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

P Mouse is now over the widget or a descendant widget, the widget is enabled and cursor capture allows it.

§Preview

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