Struct leftwm_core::XWrap [−][src]
pub struct XWrap {
pub atoms: XAtom,
pub tags: Vec<String>,
pub mode: Mode,
pub focus_behaviour: FocusBehaviour,
pub mouse_key_mask: ModMask,
pub mode_origin: (i32, i32),
pub task_notify: Arc<Notify>,
// some fields omitted
}Expand description
Contains Xserver information and origins.
Fields
atoms: XAtommode: Modefocus_behaviour: FocusBehaviourmouse_key_mask: ModMaskmode_origin: (i32, i32)task_notify: Arc<Notify>Implementations
Returns the child windows of all roots.
Errors
Will error if root has no windows or there is an error
obtaining the root windows. See get_windows_for_root.
Returns the handle of the default root.
Returns the default root.
Returns the WM_SIZE_HINTS/WM_NORMAL_HINTS of a window as a XyhwChange.
Returns the next Xevent of the xserver.
Returns all the screens of the display.
Panics
Panics if xorg cannot be contacted (xlib missing, not started, etc.) Also panics if window attrs cannot be obtained.
Returns the transient parent of a window.
Returns the geometry of a window as a XyhwChange struct.
Errors
Errors if Xlib returns a status of 0.
Returns a windows name.
Returns a windows _NET_WM_PID.
Returns the states of a window.
Returns the atom states of a window.
Returns structure of a window as a DockArea.
Returns the type of a window.
Returns the WM_HINTS of a window.
Grabs the keysym with the modifier for a window.
Resets the keybindings to a list of keybindings.
Converts a keycode to a keysym.
Converts a keysym to a keycode.
Grabs the mouse clicks of a window.
Grabs the button with the modifier for a window.
Cleans all currently grabbed buttons of a window.
Grabs the cursor and sets its visual.
Ungrab the cursor.
Move the cursor to a window.
Errors
Will error if unable to obtain window attributes. See get_window_attrs.
Replay a click on a window.
Sets the client list to the currently managed windows.
Sets the current desktop.
Sets a desktop property with type c_ulong.
Sets a desktop property with type string.
Sets a window property.
Sets a windows state.
Sets what desktop a window is on.
Sets the atom states of a window.
pub fn setup_managed_window(
&mut self,
h: WindowHandle,
follow_mouse: bool
) -> Option<DisplayEvent>
pub fn setup_managed_window(
&mut self,
h: WindowHandle,
follow_mouse: bool
) -> Option<DisplayEvent>
Sets up a window that we want to manage.
Teardown a managed window when it is destroyed.
Updates a window.
Makes a window take focus.
Restacks the windows to the order of the vec.
Raise a window.
Kills a window.
Forcibly unmap a window.
Subscribe to an event of a window.
Subscribe to the wanted events of a window.
Send a XConfigureEvent for a window to X.
Load the colors of our theme.
Wait until readable.