Trait XClientConfig

Source
pub trait XClientConfig {
    // Required methods
    fn configure_client(&self, id: Xid, data: &[ClientConfig]) -> Result<()>;
    fn set_client_attributes(&self, id: Xid, data: &[ClientAttr]) -> Result<()>;
    fn get_window_attributes(&self, id: Xid) -> Result<WindowAttributes>;

    // Provided methods
    fn position_client(
        &self,
        id: Xid,
        r: Region,
        border: u32,
        stack_above: bool,
    ) -> Result<()> { ... }
    fn raise_client(&self, id: Xid) -> Result<()> { ... }
    fn set_client_border_color(&self, id: Xid, color: Color) -> Result<()> { ... }
}
Expand description

Modifying X client config and attributes

Required Methods§

Source

fn configure_client(&self, id: Xid, data: &[ClientConfig]) -> Result<()>

Configure the on screen appearance of a client window

Source

fn set_client_attributes(&self, id: Xid, data: &[ClientAttr]) -> Result<()>

Set client attributes such as event masks, border color etc

Source

fn get_window_attributes(&self, id: Xid) -> Result<WindowAttributes>

Get the WindowAttributes for this client

Provided Methods§

Source

fn position_client( &self, id: Xid, r: Region, border: u32, stack_above: bool, ) -> Result<()>

Reposition the window identified by ‘id’ to the specifed region

Source

fn raise_client(&self, id: Xid) -> Result<()>

Raise the window to the top of the stack so it renders above peers

Source

fn set_client_border_color(&self, id: Xid, color: Color) -> Result<()>

Change the border color for the given client

Implementors§

Source§

impl XClientConfig for XcbConnection

Source§

impl<T> XClientConfig for T
where T: StubXClientConfig,