Skip to main content

paint_hover

Function paint_hover 

Source
pub fn paint_hover(
    tree: &LayoutNode,
    hovered: ActionId,
    scene: &mut Scene,
    highlight: Color,
)
Expand description

Overlay a highlight (typically translucent) on the hovered tappable element, matching its corner radius. No-op if hovered isn’t in the tree.