Struct i3ipc::reply::Output

source ·
pub struct Output {
    pub name: String,
    pub active: bool,
    pub primary: bool,
    pub current_workspace: Option<String>,
    pub rect: (i32, i32, i32, i32),
}
Expand description

A single output (display)

Fields§

§name: String

The name of this output (as seen in xrandr).

§active: bool

Whether the output is currently active (has a valid mode).

§primary: bool

Whether the output is currently the primary output.

§current_workspace: Option<String>

The name of the current workspace that is visible on this output. None if the output is not active.

§rect: (i32, i32, i32, i32)

The rectangle of this output (equals the rect of the output it is on), consists of x, y, width, height.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.