pub fn on_mouse_hovered(
child: impl UiNode,
handler: impl WidgetHandler<MouseHoverArgs>,
) -> impl UiNode
Expand description
P
Mouse entered or left the widget and descendant widgets area, the widget is enabled and cursor capture allows it.
You can use the is_mouse_enter
and is_mouse_leave
methods to determinate the state change.
§Preview
You can preview this event using on_pre_mouse_hovered
.
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.