pub struct PaneFocusRing {
pub border: BorderChars,
pub cell: Cell,
}Expand description
A stable focus indicator: a distinct border drawn around the active pane.
Fields§
§border: BorderCharsBorder glyph set (default: double-line, visually distinct from pane content borders).
cell: CellCell whose fg/bg/attrs style the border glyphs.
Implementations§
Source§impl PaneFocusRing
impl PaneFocusRing
Sourcepub fn themed(affordance: &PaneAffordanceTheme) -> Self
pub fn themed(affordance: &PaneAffordanceTheme) -> Self
Build a focus ring whose color is the theme’s contrast-guaranteed pane focus-ring affordance (bd-3bfbp).
The supplied PaneAffordanceTheme has already been contrast-clamped
against the pane surface (AA by default, AAA when built in the
high-contrast profile), so the ring stays visible across every theme
without per-call tuning.
Trait Implementations§
Source§impl Clone for PaneFocusRing
impl Clone for PaneFocusRing
Source§fn clone(&self) -> PaneFocusRing
fn clone(&self) -> PaneFocusRing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaneFocusRing
Source§impl Debug for PaneFocusRing
impl Debug for PaneFocusRing
Source§impl Default for PaneFocusRing
impl Default for PaneFocusRing
impl Eq for PaneFocusRing
Source§impl PartialEq for PaneFocusRing
impl PartialEq for PaneFocusRing
Source§fn eq(&self, other: &PaneFocusRing) -> bool
fn eq(&self, other: &PaneFocusRing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneFocusRing
Auto Trait Implementations§
impl Freeze for PaneFocusRing
impl RefUnwindSafe for PaneFocusRing
impl Send for PaneFocusRing
impl Sync for PaneFocusRing
impl Unpin for PaneFocusRing
impl UnsafeUnpin for PaneFocusRing
impl UnwindSafe for PaneFocusRing
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.