]> git.lizzy.rs Git - bspwm.git/blob - window.h
fc47250bd4e73ea27174a4e1a9e67b97a366dae1
[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 void get_side_handle(client_t *, direction_t, xcb_point_t *);
16 monitor_t *monitor_from_point(xcb_point_t);
17 monitor_t *underlying_monitor(client_t *);
18 void manage_window(monitor_t *, desktop_t *, xcb_window_t);
19 void adopt_orphans(void);
20 void window_draw_border(node_t *, bool, bool);
21 uint32_t get_border_color(client_t *, bool, bool);
22 void update_floating_rectangle(client_t *);
23 void query_pointer(xcb_window_t *, xcb_point_t *);
24 void list_windows(char *);
25 void window_close(node_t *);
26 void window_kill(desktop_t *, node_t *);
27 void toggle_fullscreen(monitor_t *, client_t *);
28 void toggle_floating(node_t *);
29 void toggle_locked(client_t *);
30 void set_urgency(monitor_t *, desktop_t *, node_t *, bool);
31 void set_shadow(xcb_window_t, uint32_t);
32 void enable_shadow(xcb_window_t);
33 void disable_shadow(xcb_window_t);
34 void window_border_width(xcb_window_t, uint32_t);
35 void window_move(xcb_window_t, int16_t, int16_t);
36 void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
37 void window_focus(xcb_window_t);
38 void window_raise(xcb_window_t);
39 void stack_tiled(desktop_t *);
40 void window_lower(xcb_window_t);
41 void window_set_visibility(xcb_window_t, bool);
42 void window_hide(xcb_window_t);
43 void window_show(xcb_window_t);
44 void toggle_visibility(void);
45 void enable_motion_recorder(void);
46 void disable_motion_recorder(void);
47 void clear_input_focus(void);
48
49 #endif