Skip to main content

link_text_role

Function link_text_role 

Source
pub fn link_text_role(
    hovered: bool,
    pressed: bool,
    focused: bool,
    visited: bool,
    disabled: bool,
) -> TextRole
Expand description

Per-state text role for a link, given its four interaction signals plus a static disabled hint. Exposed so custom LinkStyle implementations can reuse the IntUI mapping when they only want to swap the underline / focus-ring policy. Hover and pressed both map to LinkHover; visited overrides idle but is itself overridden by hover (standard web convention); disabled wins outright.