class Minyaty::X
- Minyaty::X
- Reference
- Object
Included Modules
- X11::C
Defined in:
minyaty/x.crConstant 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
- .all_windows
- .circulate_windows_down
- .circulate_windows_up
- .current_window_id
- .find_and_raise(str)
- .find_window(str : String)
- .get_property(atom, win)
- .get_window_attributes(win)
- .handle_event(event)
- .handle_pending_events
- .hide_current_window
- .intern_atom(name)
- .raise_window(win : X11::C::Window, hints = {x: nil, y: nil, width: nil, height: nil})
- .setup_error_handling
- .setup_event_monitoring