]> git.lizzy.rs Git - bspwm.git/blob - window.h
New optional EXIT_STATUS argument for 'quit'
[bspwm.git] / window.h
1 #ifndef _WINDOW_H
2 #define _WINDOW_H
3
4 #include <stdarg.h>
5 #include <xcb/xcb.h>
6 #include <xcb/xcb_event.h>
7 #include "types.h"
8
9 void center(xcb_rectangle_t, xcb_rectangle_t *);
10 bool contains(xcb_rectangle_t, xcb_rectangle_t);
11 bool might_cover(desktop_t *, node_t *);
12 bool locate_window(xcb_window_t, window_location_t *);
13 bool locate_desktop(char *, desktop_location_t *);
14 bool is_inside(monitor_t *, xcb_point_t);
15 monitor_t *underlying_monitor(client_t *);
16 void manage_window(monitor_t *, desktop_t *, xcb_window_t);
17 void adopt_orphans(void);
18 void window_draw_border(node_t *, bool, bool);
19 void window_close(node_t *);
20 void window_kill(desktop_t *, node_t *);
21 void toggle_fullscreen(monitor_t *, client_t *);
22 void toggle_floating(node_t *);
23 void toggle_locked(client_t *);
24 void window_border_width(xcb_window_t, uint32_t);
25 void window_move(xcb_window_t, int16_t, int16_t);
26 void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
27 void window_raise(xcb_window_t);
28 void window_pseudo_raise(desktop_t *, xcb_window_t);
29 void window_lower(xcb_window_t);
30 void window_set_visibility(xcb_window_t, bool);
31 void window_hide(xcb_window_t);
32 void window_show(xcb_window_t);
33 void toggle_visibility(void);
34 uint32_t get_main_border_color(client_t *, bool, bool);
35 void update_floating_rectangle(client_t *);
36 void list_windows(char *);
37
38 #endif