FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Label

    struct · ferroui-controls · v0.5.0

    struct Label
    

    Label control. Focuses its Target when the label is activated: when it is clicked, or when its access key is pressed.

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

    Returns a strong reference to this object.

    Source

    target_property

    fn target_property() -> &'static StyledProperty<Option<ferroui_base::ElementRef<InputElement>>>
    

    Defines the Target property.

    The label does not own its target, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new label.

    Source

    target

    fn target(self: &Self) -> Option<Ref<InputElement>>
    

    Gets the label's target.

    Source

    set_target

    fn set_target(self: &Self, value: impl Into<Nullable<InputElement>>)
    

    Sets the label's target.

    Source

    Trait implementations

    Availability

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