FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HyperlinkButton

    struct · ferroui-controls · v0.5.0

    struct HyperlinkButton
    

    A button control that functions as a navigateable hyperlink.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<HyperlinkButton>
    

    Returns a strong reference to this object.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    is_visited_property

    fn is_visited_property() -> &'static StyledProperty<bool>
    

    Defines the IsVisited property.

    Source

    navigate_uri_property

    fn navigate_uri_property() -> &'static StyledProperty<Option<UriRef>>
    

    Defines the NavigateUri property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a hyperlink button.

    Source

    is_visited

    fn is_visited(self: &Self) -> bool
    

    A value indicating whether the NavigateUri has been visited.

    Source

    set_is_visited

    fn set_is_visited(self: &Self, value: bool)
    

    Source

    navigate_uri

    fn navigate_uri(self: &Self) -> Option<UriRef>
    

    The Uniform Resource Identifier (URI) automatically navigated to when the hyperlink button is clicked.

    The URI may be any website or file location that can be launched using the launcher service.

    If a URI should not be automatically launched, leave this property unset and use the Click event and is_visited directly.

    The URI is a UriRef, as markup writes it (decision O5 of docs/idiomatic-rust-signatures.md): a relative reference loads and is kept, and a click launches only an absolute one.

    Source

    set_navigate_uri

    fn set_navigate_uri(self: &Self, value: Option<UriRef>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.