Trait swayr::con::NodeMethods [−][src]
pub trait NodeMethods { fn iter(&self) -> NodeIter<'_>ⓘ; fn is_window(&self) -> bool; fn is_container(&self) -> bool; fn windows(&self) -> Vec<&Node>; fn workspaces(&self) -> Vec<&Node>; fn is_scratchpad(&self) -> bool; }
Expand description
Extension methods for [swayipc::Node
].
Required methods
Returns an iterator for this [swayipc::Node
] and its childres.
fn is_container(&self) -> bool
fn is_container(&self) -> bool
Either a workspace or a con holding windows, e.g. a vertical split side in a horizontally split workspace.
fn workspaces(&self) -> Vec<&Node>
fn workspaces(&self) -> Vec<&Node>
Returns all nodes being workspaces.
fn is_scratchpad(&self) -> bool