KeyboardNavigation
struct · ferroui-base · v0.5.0
struct KeyboardNavigation
Defines attached properties that control keyboard navigation behaviour for a container.
Members
TYPEtab_index_propertytab_navigation_propertytab_once_active_element_propertyis_tab_stop_propertyget_tab_indexset_tab_indexget_tab_navigationset_tab_navigationget_tab_once_active_elementset_tab_once_active_elementset_is_tab_stopget_is_tab_stop
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this type.
tab_index_property
fn tab_index_property() -> &'static AttachedProperty<i32>
Defines the TabIndex attached property.
tab_navigation_property
fn tab_navigation_property() -> &'static AttachedProperty<KeyboardNavigationMode>
Defines the TabNavigation attached property.
It defines how pressing the Tab key causes focus to be navigated between the children of the container.
tab_once_active_element_property
fn tab_once_active_element_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
Defines the TabOnceActiveElement attached property.
When focus enters a container which has its TabNavigation
attached property set to Once, this property defines to which
child the focus should move.
is_tab_stop_property
fn is_tab_stop_property() -> &'static AttachedProperty<bool>
Defines the IsTabStop attached property.
It determines if the control can receive focus by tab navigation.
get_tab_index
fn get_tab_index(element: &InputElement) -> i32
Gets the TabIndex attached property for an element.
set_tab_index
fn set_tab_index(element: &InputElement, value: i32)
Sets the TabIndex attached property for an element.
get_tab_navigation
fn get_tab_navigation(element: &InputElement) -> KeyboardNavigationMode
Gets the TabNavigation attached property for a container.
set_tab_navigation
fn set_tab_navigation(element: &InputElement, value: KeyboardNavigationMode)
Sets the TabNavigation attached property for a container.
get_tab_once_active_element
fn get_tab_once_active_element(element: &InputElement) -> Option<Ref<InputElement>>
Gets the TabOnceActiveElement attached property for a container.
set_tab_once_active_element
fn set_tab_once_active_element(element: &InputElement, value: Option<Ref<InputElement>>)
Sets the TabOnceActiveElement attached property for a container.
set_is_tab_stop
fn set_is_tab_stop(element: &InputElement, value: bool)
Sets the IsTabStop attached property for an element.
get_is_tab_stop
fn get_is_tab_stop(element: &InputElement) -> bool
Gets the IsTabStop attached property for an element.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherStaticType
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.