]> git.lizzy.rs Git - bspwm.git/blob - window.h
9a527c34d4a93686c78d97076b3673b01f087d69
[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 <xcb/xcb_icccm.h>
8 #include "types.h"
9
10 pointer_state_t *make_pointer_state(void);
11 void center(xcb_rectangle_t, xcb_rectangle_t *);
12 bool contains(xcb_rectangle_t, xcb_rectangle_t);
13 bool is_inside(monitor_t *, xcb_point_t);
14 xcb_rectangle_t get_rectangle(client_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 window_close(node_t *);
25 void window_kill(desktop_t *, node_t *);
26 void set_fullscreen(node_t *, bool);
27 void set_floating(node_t *, bool);
28 void set_locked(monitor_t *, desktop_t *, node_t *, bool);
29 void set_urgency(monitor_t *, desktop_t *, node_t *, bool);
30 void set_floating_atom(xcb_window_t, uint32_t);
31 void enable_floating_atom(xcb_window_t);
32 void disable_floating_atom(xcb_window_t);
33 void window_border_width(xcb_window_t, uint32_t);
34 void window_move(xcb_window_t, int16_t, int16_t);
35 void window_resize(xcb_window_t, uint16_t, uint16_t);
36 void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
37 bool window_focus(xcb_window_t);
38 void window_raise(xcb_window_t);
39 void window_stack(xcb_window_t, xcb_window_t, uint32_t);
40 void window_above(xcb_window_t, xcb_window_t);
41 void window_below(xcb_window_t, xcb_window_t);
42 void window_lower(xcb_window_t);
43 void window_set_visibility(xcb_window_t, bool);
44 void window_hide(xcb_window_t);
45 void window_show(xcb_window_t);
46 void toggle_visibility(void);
47 void enable_motion_recorder(void);
48 void disable_motion_recorder(void);
49 void update_motion_recorder(void);
50 void update_input_focus(void);
51 void set_input_focus(node_t *);
52 void clear_input_focus(void);
53 void center_pointer(monitor_t *);
54 void get_atom(char *, xcb_atom_t *);
55 void set_atom(xcb_window_t, xcb_atom_t, uint32_t);
56 bool has_proto(xcb_atom_t, xcb_icccm_get_wm_protocols_reply_t *);
57 void send_client_message(xcb_window_t, xcb_atom_t property, xcb_atom_t);
58
59 #endif