FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Hyperlink

    struct · ferroui-controls · v0.5.0

    struct Hyperlink
    

    An interactive span. Its host supplies hit testing/focus and forwards pointer and keyboard gestures; invocation and URI launch use the framework services.

    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<Hyperlink>
    

    Returns a strong reference to this object.

    Source

    navigate_uri_property

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

    Source

    target_name_property

    fn target_name_property() -> &'static StyledProperty<Option<String>>
    

    Source

    is_enabled_property

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

    Source

    is_tab_stop_property

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

    Source

    tab_index_property

    fn tab_index_property() -> &'static StyledProperty<i32>
    

    Source

    is_visited_property

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

    Source

    underline_style_property

    fn underline_style_property() -> &'static StyledProperty<UnderlineStyle>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_text

    fn with_text(text: &str, navigate_uri: Option<&str>) -> Ref<Self>
    

    Source

    navigate_uri

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

    Source

    set_navigate_uri

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

    Source

    target_name

    fn target_name(self: &Self) -> Option<String>
    

    Source

    set_target_name

    fn set_target_name(self: &Self, value: Option<String>)
    

    Source

    is_enabled

    fn is_enabled(self: &Self) -> bool
    

    Source

    set_is_enabled

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

    Source

    is_tab_stop

    fn is_tab_stop(self: &Self) -> bool
    

    Source

    set_is_tab_stop

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

    Source

    tab_index

    fn tab_index(self: &Self) -> i32
    

    Source

    set_tab_index

    fn set_tab_index(self: &Self, value: i32)
    

    Source

    is_visited

    fn is_visited(self: &Self) -> bool
    

    Source

    set_is_visited

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

    Source

    underline_style

    fn underline_style(self: &Self) -> UnderlineStyle
    

    Source

    set_underline_style

    fn set_underline_style(self: &Self, value: UnderlineStyle)
    

    Source

    should_draw_underline

    fn should_draw_underline(self: &Self) -> bool
    

    Source

    content_text

    fn content_text(self: &Self) -> String
    

    Source

    is_pointer_over

    fn is_pointer_over(self: &Self) -> bool
    

    Source

    is_pressed

    fn is_pressed(self: &Self) -> bool
    

    Source

    is_focused

    fn is_focused(self: &Self) -> bool
    

    Source

    set_is_pointer_over

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

    Source

    set_is_focused

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

    Source

    click

    fn click(self: &Self, handler: impl Fn(&HyperlinkClickEventArgs) -> () + 'static) -> Subscription
    

    Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the hyperlink.

    Source

    navigation_requested

    fn navigation_requested(self: &Self, handler: impl Fn(&HyperlinkClickEventArgs) -> () + 'static) -> Subscription
    

    Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the hyperlink.

    Source

    navigate

    fn navigate(self: &Self) -> bool
    

    Raises Click, then NavigationRequested. A handled event cancels default URI launch. A relative URI remains available to an application navigation handler.

    Source

    pointer_pressed

    fn pointer_pressed(self: &Self) -> bool
    

    Source

    pointer_released

    fn pointer_released(self: &Self, is_over: bool) -> bool
    

    Source

    cancel_pointer

    fn cancel_pointer(self: &Self)
    

    Source

    key_down

    fn key_down(self: &Self, key: Key) -> bool
    

    Source

    key_up

    fn key_up(self: &Self, key: Key) -> bool
    

    Source

    fn is_link_navigation_key(key: Key) -> bool
    

    Source

    Trait implementations

    Availability

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