pub fn is_hovered(child: impl UiNode, state: impl IntoVar<bool>) -> impl UiNode
Expand description
P
If the mouse pointer is over the widget or a descendant and the widget is enabled.
This state property does not consider pointer capture, if the pointer is captured by the widget
but is not actually over the widget this is false
, use is_cap_hovered
to include the captured state.
The value is always false
when the widget is not ENABLED
, use is_hovered_disabled
to implement disabled hovered visuals.