pub struct Workspace {
pub num: i32,
pub name: String,
pub visible: bool,
pub focused: bool,
pub urgent: bool,
pub rect: (i32, i32, i32, i32),
pub output: String,
}Expand description
A single workspace.
Fields§
§num: i32The logical number of the workspace. Corresponds to the command to switch to this workspace. For named workspaces, this will be -1.
name: StringThe name of this workspace (by default num+1), as changed by the user.
visible: boolWhether this workspace is currently visible on an output (multiple workspaces can be visible at the same time).
focused: boolWhether this workspace currently has the focus (only one workspace can have the focus at the same time).
urgent: boolWhether a window on this workspace has the “urgent” flag set.
rect: (i32, i32, i32, i32)The rectangle of this workspace (equals the rect of the output it is on), consists of x, y, width, height.
output: StringThe video output this workspace is on (LVDS1, VGA1, …).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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