[][src]Struct i3ipc::reply::Workspace

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,
}

A single workspace.

Fields

num: i32

The logical number of the workspace. Corresponds to the command to switch to this workspace. For named workspaces, this will be -1.

name: String

The name of this workspace (by default num+1), as changed by the user.

visible: bool

Whether this workspace is currently visible on an output (multiple workspaces can be visible at the same time).

focused: bool

Whether this workspace currently has the focus (only one workspace can have the focus at the same time).

urgent: bool

Whether 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: String

The video output this workspace is on (LVDS1, VGA1, …).

Trait Implementations

impl Debug for Workspace[src]

Auto Trait Implementations

impl Send for Workspace

impl Sync for Workspace

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]