Struct leftwm_core::models::Workspace [−][src]
pub struct Workspace {
pub id: Option<i32>,
pub layout: Layout,
pub main_width_percentage: u8,
pub tags: Vec<TagId>,
pub margin: Margins,
pub margin_multiplier: f32,
pub gutters: Vec<Gutter>,
pub avoid: Vec<Xyhw>,
pub xyhw: Xyhw,
pub max_window_width: Option<Size>,
// some fields omitted
}
Expand description
Information for workspaces (screen divisions).
Fields
id: Option<i32>
layout: Layout
Active layout
main_width_percentage: u8
margin: Margins
margin_multiplier: f32
gutters: Vec<Gutter>
avoid: Vec<Xyhw>
xyhw: Xyhw
max_window_width: Option<Size>
Implementations
Returns true if the workspace is displays a given window.
Returns true if the workspace is to update the locations info of this window.
Returns the original x position of the workspace,
disregarding the optional max_window_width
configuration
Returns the x position for the workspace,
while accounting for the optional max_window_width
configuration
Returns the original width for the workspace,
disregarding the optional max_window_width
configuration
Returns the width of the workspace,
while accounting for the optional max_window_width
configuration
Set the tag model’s margin multiplier.
Get a reference to the tag model’s margin multiplier.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Workspace
impl UnwindSafe for Workspace
Blanket Implementations
Mutably borrows from an owned value. Read more