Struct leftwm_core::Workspace [−][src]
pub struct Workspace {
pub id: Option<i32>,
pub layout: Layout,
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: LayoutActive layout
margin: Marginsmargin_multiplier: f32gutters: Vec<Gutter>avoid: Vec<Xyhw>xyhw: Xyhwmax_window_width: Option<Size>Implementations
pub fn new(
id: Option<i32>,
bbox: BBox,
all_tags: Vec<Tag>,
layout: Layout,
max_window_width: Option<Size>
) -> Self
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