Struct gabelstaplerwm::wm::client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
A client wrapping a window.
A client is a container object that holds the information associated with,
a window, but doesn't directly influence the workings of the window
manager. That is, the window's properties are used to alter associated
structures, which in turn influence the behaviour of the window manager.
This is a common pattern in gabelstaplerwm
: Most code that the user
writes isn't calling any X functions to actually perform the actions it
symbolizes. Instead, it modifies carefully crafted structures that act as
an interpreting layer for the window manager.
Methods
impl Client
[src]
fn new(window: Window, tags: BTreeSet<Tag>, props: ClientProps) -> Client
Setup a new client for a specific window, on a set of tags and with given properties.
fn get_window(&self) -> Window
Get the window associated with the client.
Move a window to a new set of tags.
Assumes the slice denoted by tags
doesn't contain duplicate elements.
fn toggle_tag(&mut self, tag: Tag) -> Option<bool>
Add or remove a tag from a window.
If client
would be visible on no tags at all, the operation is not
performed.
Check whether a client is visible on a set of tags.
Trait Implementations
impl Clone for Client
[src]
fn clone(&self) -> Client
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more