pub struct FocusState {
pub current_panel: PanelType,
pub expecting_window_nav: bool,
}Fields§
§current_panel: PanelTypeImplementations§
Source§impl FocusState
impl FocusState
pub fn new() -> Self
pub fn new_with_default(default_panel: PanelType) -> Self
pub fn cycle_next(&mut self, source_enabled: bool)
pub fn cycle_previous(&mut self, source_enabled: bool)
pub fn set_panel(&mut self, panel: PanelType)
pub fn is_focused(&self, panel: PanelType) -> bool
pub fn move_focus_in_direction( &mut self, direction: WindowDirection, layout_mode: LayoutMode, source_enabled: bool, )
Trait Implementations§
Source§impl Debug for FocusState
impl Debug for FocusState
Auto Trait Implementations§
impl Freeze for FocusState
impl RefUnwindSafe for FocusState
impl Send for FocusState
impl Sync for FocusState
impl Unpin for FocusState
impl UnwindSafe for FocusState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more