class Minyaty::X

Included Modules

Defined in:

minyaty/x.cr

Constant Summary

ATOMS = {useful_properties: (["WM_STATE", "WM_CLASS", "WM_NAME", "_NET_WM_WINDOW_TYPE"] of ::String).map do |a| intern_atom(a) end, maximized: Slice[intern_atom("_NET_WM_STATE_MAXIMIZED_HORZ"), intern_atom("_NET_WM_STATE_MAXIMIZED_VERT")], XA_NET_WM_STATE: intern_atom("_NET_WM_STATE"), XA_NET_FRAME_EXTENTS: intern_atom("_NET_FRAME_EXTENTS"), _NET_WM_WINDOW_TYPE_DIALOG: intern_atom("_NET_WM_WINDOW_TYPE_DIALOG")}
DISPLAY = X11::Display.new
ROOT_WINDOW = DISPLAY.root_window(0)
SCREEN_HEIGHT = DISPLAY.height(DISPLAY.default_screen_number)
SCREEN_WIDTH = (DISPLAY.width(DISPLAY.default_screen_number)).to_u32

Class Method Summary

Class Method Detail

def self.all_windows #

[View source]
def self.circulate_windows_down #

[View source]
def self.circulate_windows_up #

[View source]
def self.current_window_id #

[View source]
def self.find_and_raise(str) #

[View source]
def self.find_window(str : String) #

[View source]
def self.get_property(atom, win) #

[View source]
def self.get_window_attributes(win) #

[View source]
def self.handle_event(event) #

[View source]
def self.handle_pending_events #

[View source]
def self.hide_current_window #

[View source]
def self.intern_atom(name) #

[View source]
def self.raise_window(win : X11::C::Window, hints = {x: nil, y: nil, width: nil, height: nil}) #

[View source]
def self.setup_error_handling #

[View source]
def self.setup_event_monitoring #

[View source]