]> git.sur5r.net Git - i3/i3/blob - i3bar/include/xcb.h
230ff6e6b6e2a219fa61436d0b7cfe34bd333e7e
[i3/i3] / i3bar / include / xcb.h
1 #ifndef XCB_H_
2 #define XCB_H_
3
4 #include <xcb/xcb.h>
5
6 #define NUM_ATOMS 3
7
8 enum {
9         #define ATOM_DO(name) name,
10         #include "xcb_atoms.def"
11 };
12
13 xcb_atom_t atoms[NUM_ATOMS];
14
15 xcb_connection_t *xcb_connection;
16 xcb_screen_t     *xcb_screens;
17 xcb_window_t     xcb_root;
18 xcb_font_t       xcb_font;
19 int              font_height;
20
21 void init_xcb();
22 void clean_xcb();
23 void get_atoms();
24 void destroy_windows();
25 void create_windows();
26 void draw_buttons();
27 int get_string_width(char *string);
28 void handle_xcb_event(xcb_generic_event_t *event);
29
30 #endif