FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AccessText

    struct · ferroui-controls · v0.5.0

    struct AccessText
    

    A text block that displays a character prefixed with an underscore as an access key.

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

    Returns a strong reference to this object.

    Source

    show_access_key_property

    fn show_access_key_property() -> &'static AttachedProperty<bool>
    

    Defines the ShowAccessKey attached property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the AccessText class.

    Source

    access_key

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

    The access key.

    Source

    show_access_key

    fn show_access_key(self: &Self) -> bool
    

    A value indicating whether the access key should be underlined.

    Source

    set_show_access_key

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

    Source

    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.

    Source

    Trait implementations

    Availability

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