AccessText
struct · ferroui-controls · v0.5.0
struct AccessText
A text block that displays a character prefixed with an underscore as an access key.
Members
TYPEto_refshow_access_key_propertyconstructnewaccess_keyshow_access_keyset_show_access_keyremove_access_key_marker
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AccessText>
Returns a strong reference to this object.
show_access_key_property
fn show_access_key_property() -> &'static AttachedProperty<bool>
Defines the ShowAccessKey attached property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new instance of the AccessText class.
access_key
fn access_key(self: &Self) -> Option<String>
The access key.
show_access_key
fn show_access_key(self: &Self) -> bool
A value indicating whether the access key should be underlined.
set_show_access_key
fn set_show_access_key(self: &Self, value: bool)
remove_access_key_marker
fn remove_access_key_marker(text: Option<&str>) -> Option<String>
Removes the first access key marker of a text and unescapes doubled markers.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtTextBlockImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<AccessText>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImplTextBlockImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.