FocusBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct FocusBehavior
Focuses the associated control when is_focused becomes true, and sets it
back to false when the control loses the focus.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<FocusBehavior>
Returns a strong reference to this object.
is_focused_property
fn is_focused_property() -> &'static StyledProperty<bool>
Identifies the IsFocused property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
is_focused
fn is_focused(self: &Self) -> bool
Gets or sets whether the associated control has the focus. This is a property of the object model, bound in both directions by default.
set_is_focused
fn set_is_focused(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDisposingBehaviorImplExtStyledElementBehaviorImplExtDerefUpcast<T>Upcast<FocusBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.