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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Label>
Returns a strong reference to this object.
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.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new label.
target
fn target(self: &Self) -> Option<Ref<InputElement>>
Gets the label's target.
set_target
fn set_target(self: &Self, value: impl Into<Nullable<InputElement>>)
Sets the label's target.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Label>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplTemplatedControlImplContentControlImplControlImplFerroObjectImplInputElementImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.