HyperlinkButton
struct · ferroui-controls · v0.5.0
struct HyperlinkButton
A button control that functions as a navigateable hyperlink.
Members
TYPEto_refPSEUDO_CLASSESis_visited_propertynavigate_uri_propertyconstructnewis_visitedset_is_visitednavigate_uriset_navigate_uri
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<HyperlinkButton>
Returns a strong reference to this object.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
is_visited_property
fn is_visited_property() -> &'static StyledProperty<bool>
Defines the IsVisited property.
navigate_uri_property
fn navigate_uri_property() -> &'static StyledProperty<Option<UriRef>>
Defines the NavigateUri property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a hyperlink button.
is_visited
fn is_visited(self: &Self) -> bool
A value indicating whether the NavigateUri has been visited.
set_is_visited
fn set_is_visited(self: &Self, value: bool)
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.
set_navigate_uri
fn set_navigate_uri(self: &Self, value: Option<UriRef>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtButtonImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<HyperlinkButton>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplButtonImplFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.