[−][src]Enum azul_core::dom::TabIndex
Variants
Automatic tab index, similar to simply setting focusable = "true"
or tabindex = 0
(both have the effect of making the element focusable).
Sidenote: See https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute for interesting notes on tabindex and accessibility
OverrideInParent(usize)
Set the tab index in relation to its parent element. I.e. if you have a list of elements, the focusing order is restricted to the current parent.
Ex. a div might have:
div (Auto) |- element1 (OverrideInParent 0) <- current focus |- element2 (OverrideInParent 5) |- element3 (OverrideInParent 2) |- element4 (Global 5)
When pressing tab repeatedly, the focusing order will be "element3, element2, element4, div", since OverrideInParent elements take precedence among global order.
Elements can be focused in callbacks, but are not accessible via keyboard / tab navigation (-1)
Implementations
impl TabIndex
[src]
Trait Implementations
impl Clone for TabIndex
[src]
impl Copy for TabIndex
[src]
impl Debug for TabIndex
[src]
impl Default for TabIndex
[src]
impl Eq for TabIndex
[src]
impl Hash for TabIndex
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TabIndex
[src]
fn cmp(&self, other: &TabIndex) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TabIndex> for TabIndex
[src]
impl PartialOrd<TabIndex> for TabIndex
[src]
fn partial_cmp(&self, other: &TabIndex) -> Option<Ordering>
[src]
fn lt(&self, other: &TabIndex) -> bool
[src]
fn le(&self, other: &TabIndex) -> bool
[src]
fn gt(&self, other: &TabIndex) -> bool
[src]
fn ge(&self, other: &TabIndex) -> bool
[src]
impl StructuralEq for TabIndex
[src]
impl StructuralPartialEq for TabIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for TabIndex
impl Send for TabIndex
impl Sync for TabIndex
impl Unpin for TabIndex
impl UnwindSafe for TabIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,