FocusBehaviorBase
struct · ferroui-xaml-interactions-custom · v0.5.0
struct FocusBehaviorBase
The base class of the behaviors that focus their associated control: the navigation method and the key modifiers the focus is given with.
The class is abstract: a deriving class implements
AttachedToVisualTreeBehaviorImpl::on_attached_to_visual_tree_override and calls
focus.
Members
TYPEto_reffocusnavigation_method_propertykey_modifiers_propertyconstructnavigation_methodset_navigation_methodkey_modifiersset_key_modifiers
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<FocusBehaviorBase>
Returns a strong reference to this object.
focus
fn focus(self: &Self) -> bool
Focuses the associated control, in a job of the dispatcher.
Returns true when the focus is requested; false when the behavior is disabled.
navigation_method_property
fn navigation_method_property() -> &'static StyledProperty<NavigationMethod>
Identifies the NavigationMethod property.
key_modifiers_property
fn key_modifiers_property() -> &'static StyledProperty<KeyModifiers>
Identifies the KeyModifiers property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
navigation_method
fn navigation_method(self: &Self) -> NavigationMethod
Gets or sets the navigation method the focus is given with. This is a property of the object model.
set_navigation_method
fn set_navigation_method(self: &Self, value: NavigationMethod)
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
Gets or sets the key modifiers the focus is given with. This is a property of the object model.
set_key_modifiers
fn set_key_modifiers(self: &Self, value: KeyModifiers)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeBehaviorImplExtFocusBehaviorBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDisposingBehaviorImplExtStyledElementBehaviorImplExtDerefUpcast<T>Upcast<FocusBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingBehaviorImplAttachedToVisualTreeBehaviorImplFocusBehaviorBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.