Skip to main content

FocusRing

Trait FocusRing 

Source
pub trait FocusRing: InteractiveElement + Sized {
    // Provided method
    fn focus_ring(self, theme: &Theme) -> Self { ... }
}
Expand description

The one focus treatment in the library.

Every keyboard-reachable element wears the same ring from the same tokens, so “the keyboard is here” looks identical whether it is on a button, a table header, or a tree row. It is a shadow rather than a border so turning focus on never reflows what is around it.

Provided Methods§

Source

fn focus_ring(self, theme: &Theme) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§