pub struct FocusIndicator { /* private fields */ }Expand description
Configuration for how focused widgets render their focus cue.
Combines a FocusIndicatorKind (what to draw) with a Style
(how to draw it). Widgets call style to
get the overlay style and kind to decide
the rendering strategy.
Implementations§
Source§impl FocusIndicator
impl FocusIndicator
Sourcepub fn style_overlay(style: Style) -> Self
pub fn style_overlay(style: Style) -> Self
Create a focus indicator with a custom style overlay.
Sourcepub fn with_style(self, style: Style) -> Self
pub fn with_style(self, style: Style) -> Self
Set the style for this indicator.
Sourcepub fn with_kind(self, kind: FocusIndicatorKind) -> Self
pub fn with_kind(self, kind: FocusIndicatorKind) -> Self
Set the kind of indicator.
Sourcepub fn kind(&self) -> FocusIndicatorKind
pub fn kind(&self) -> FocusIndicatorKind
Get the indicator kind.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if this indicator has a visible focus cue.
Trait Implementations§
Source§impl Clone for FocusIndicator
impl Clone for FocusIndicator
Source§fn clone(&self) -> FocusIndicator
fn clone(&self) -> FocusIndicator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FocusIndicator
impl Debug for FocusIndicator
Source§impl Default for FocusIndicator
impl Default for FocusIndicator
Source§impl Hash for FocusIndicator
impl Hash for FocusIndicator
Source§impl PartialEq for FocusIndicator
impl PartialEq for FocusIndicator
impl Copy for FocusIndicator
impl Eq for FocusIndicator
impl StructuralPartialEq for FocusIndicator
Auto Trait Implementations§
impl Freeze for FocusIndicator
impl RefUnwindSafe for FocusIndicator
impl Send for FocusIndicator
impl Sync for FocusIndicator
impl Unpin for FocusIndicator
impl UnsafeUnpin for FocusIndicator
impl UnwindSafe for FocusIndicator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.