Struct gabelstaplerwm::wm::layout::monocle::Monocle
[−]
[src]
pub struct Monocle { pub offset_x: u32, pub offset_y: u32, }
Monocle layout with offset.
Shows one window at a time, keeping offsets to the screen borders. New clients are added as master, otherwise they would be invisible at first.
Fields
offset_x: u32
x offset of master window (symmetric)
offset_y: u32
y offset of master window (symmetric)
Trait Implementations
impl Debug for Monocle
[src]
impl Default for Monocle
[src]
impl Layout for Monocle
[src]
fn arrange(
&self,
num_windows: usize,
screen: &TilingArea
) -> Vec<Option<Geometry>>
&self,
num_windows: usize,
screen: &TilingArea
) -> Vec<Option<Geometry>>
Compute window geometries. Read more
fn right_window(&self, _: usize, _: usize) -> Option<usize>
Get the index of the window to the right of the nth window.
fn left_window(&self, _: usize, _: usize) -> Option<usize>
Get the index of the window to the left of the nth window.
fn top_window(&self, _: usize, _: usize) -> Option<usize>
Get the index of the window to the top of the nth window.
fn bottom_window(&self, _: usize, _: usize) -> Option<usize>
Get the index of the window to the bottom of the nth window.
fn new_window_as_master(&self) -> bool
Decide whether to insert new windows as master.
fn edit_layout(&mut self, msg: LayoutMessage) -> bool
React to a LayoutMessage
, returning true on change.
fn edit_layout_retry(&mut self, msgs: Vec<LayoutMessage>) -> bool
React to the first applicable LayoutMessage
. Read more