Enum penrose_ui::bar::widgets::FocusState
source · pub enum FocusState {
Unfocused,
FocusedOnThisScreen,
FocusedOnOtherScreen,
}
Expand description
The focus state of a given workspace being rendered within a WorkspacesWidget.
Variants§
Unfocused
The workspace is not currently focused on any screen.
FocusedOnThisScreen
The workspace is focused on the screen that the widget is rendered on.
FocusedOnOtherScreen
The workspace is focused on a screen that the widget is not rendered on.
Implementations§
Trait Implementations§
source§impl Clone for FocusState
impl Clone for FocusState
source§fn clone(&self) -> FocusState
fn clone(&self) -> FocusState
Returns a copy 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 FocusState
impl Debug for FocusState
source§impl PartialEq for FocusState
impl PartialEq for FocusState
source§fn eq(&self, other: &FocusState) -> bool
fn eq(&self, other: &FocusState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FocusState
impl Eq for FocusState
impl StructuralPartialEq 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