[][src]Struct leftwm::XWrap

pub struct XWrap {
    pub xlib: Xlib,
    pub display: *mut Display,
    pub atoms: XAtom,
    pub tags: Vec<String>,
    pub mode: Mode,
    pub mod_key_mask: c_uint,
    pub mode_origin: (i32, i32),
    // some fields omitted
}

Fields

xlib: Xlibdisplay: *mut Displayatoms: XAtomtags: Vec<String>mode: Modemod_key_mask: c_uintmode_origin: (i32, i32)

Methods

impl XWrap[src]

pub fn new() -> XWrap[src]

pub fn get_screens(&self) -> Vec<Screen>[src]

pub fn get_xscreens(&self) -> Vec<Screen>[src]

pub fn get_default_root_handle(&self) -> WindowHandle[src]

pub fn get_default_root(&self) -> Window[src]

pub fn get_roots(&self) -> Vec<Window>[src]

pub fn keycode_to_keysym(&self, keycode: u32) -> c_uint[src]

pub fn get_windows_for_root<'w>(
    &self,
    root: Window
) -> Result<&'w [Window], String>
[src]

pub fn get_all_windows(&self) -> Result<Vec<Window>, String>[src]

pub fn get_window_attrs(&self, window: Window) -> Result<XWindowAttributes, ()>[src]

pub fn get_atom_prop_value(&self, window: Window, prop: Atom) -> Option<Atom>[src]

pub fn get_window_type(&self, window: Window) -> WindowType[src]

pub fn init_desktops_hints(&self)[src]

pub fn set_current_viewport(&self, tags: Vec<&String>)[src]

pub fn set_current_desktop(&self, current_tags: &str)[src]

pub fn update_window(&self, window: &Window, is_focused: bool)[src]

pub fn setup_managed_window(&self, h: WindowHandle) -> Option<DisplayEvent>[src]

pub fn move_cursor_to_window(&self, window: Window) -> Result<(), ()>[src]

pub fn screens_area_dimensions(&self) -> (i32, i32)[src]

pub fn get_window_strut_array(&self, window: Window) -> Option<DockArea>[src]

pub fn teardown_managed_window(&self, h: WindowHandle)[src]

pub fn send_config(&self, window: &Window)[src]

used to send and XConfigureEvent for a changed window to the xserver

pub fn get_transient_for(&self, window: Window) -> Option<Window>[src]

pub fn get_window_name(&self, window: Window) -> Option<String>[src]

pub fn get_text_prop(&self, window: Window, atom: Atom) -> Result<String, ()>[src]

pub fn get_xatom_name(&self, atom: Atom) -> Result<String, ()>[src]

pub fn move_to_top(&self, handle: WindowHandle)[src]

pub fn get_window_geometry(&self, window: Window) -> Result<XYHWChange, ()>[src]

pub fn window_take_focus(&self, window: Window)[src]

pub fn kill_window(&self, h: WindowHandle)[src]

pub fn subscribe_to_event(&self, window: Window, mask: c_long)[src]

pub fn subscribe_to_window_events(&self, handle: &WindowHandle)[src]

pub fn get_pointer_location(&self) -> Option<(i32, i32)>[src]

pub fn get_wmhints(&self, window: Window) -> Option<XWMHints>[src]

pub fn get_hint_sizing(&self, window: Window) -> Option<XSizeHints>[src]

pub fn get_hint_sizing_as_xyhw(&self, window: Window) -> Option<XYHWChange>[src]

pub fn grab_buttons(&self, window: Window, button: u32, modifiers: u32)[src]

pub fn grab_keys(&self, root: Window, keysym: u32, modifiers: u32)[src]

pub fn load_colors(&mut self, theme: &ThemeSetting)[src]

pub fn init(&mut self, config: &Config, theme: &ThemeSetting)[src]

pub fn set_mode(&mut self, mode: Mode)[src]

pub fn get_next_event(&self) -> XEvent[src]

Trait Implementations

impl Default for XWrap[src]

Auto Trait Implementations

impl !Send for XWrap

impl !Sync for XWrap

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T