pub struct HyprlandWorkspace {
pub id: Option<i64>,
pub name: String,
pub monitor: String,
pub windows: u32,
pub focused: bool,
pub active: bool,
pub urgent: bool,
}Expand description
One of Hyprland’s workspaces, as j/workspaces describes it.
Fields§
§id: Option<i64>Its number. Named and special workspaces have none from Hyprland 0.57 on, and a number below zero before it.
name: StringIts name, such as 1, web or special:magic: the key to give
children_keyed.
monitor: StringThe name of the monitor it is on, such as DP-1.
windows: u32How many windows it holds.
focused: boolWhether it is shown on the focused monitor.
active: boolWhether it is shown on its monitor, focused or not.
urgent: boolWhether a window on it asks for attention.
Trait Implementations§
Source§impl Clone for HyprlandWorkspace
impl Clone for HyprlandWorkspace
Source§impl Debug for HyprlandWorkspace
impl Debug for HyprlandWorkspace
impl Eq for HyprlandWorkspace
Source§impl PartialEq for HyprlandWorkspace
impl PartialEq for HyprlandWorkspace
impl StructuralPartialEq for HyprlandWorkspace
Auto Trait Implementations§
impl Forget for HyprlandWorkspace
impl Freeze for HyprlandWorkspace
impl Move for HyprlandWorkspace
impl RefUnwindSafe for HyprlandWorkspace
impl Send for HyprlandWorkspace
impl Sync for HyprlandWorkspace
impl Unpin for HyprlandWorkspace
impl UnsafeUnpin for HyprlandWorkspace
impl UnwindSafe for HyprlandWorkspace
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