]> git.sur5r.net Git - i3/i3/blob - i3-config-wizard/xcb.h
Merge branch 'next'
[i3/i3] / i3-config-wizard / xcb.h
1 #ifndef _XCB_H
2 #define _XCB_H
3
4 /* from X11/keysymdef.h */
5 #define XCB_NUM_LOCK                    0xff7f
6
7 #define xmacro(atom) xcb_atom_t A_ ## atom;
8 #include "atoms.xmacro"
9 #undef xmacro
10
11 extern unsigned int xcb_numlock_mask;
12
13 void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);
14 uint32_t get_colorpixel(xcb_connection_t *conn, char *hex);
15 uint32_t get_mod_mask(xcb_connection_t *conn, uint32_t keycode);
16 xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
17 int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
18 /**
19  * Finds out which modifier mask is the one for numlock, as the user may change this.
20  *
21  */
22 void xcb_get_numlock_mask(xcb_connection_t *conn);
23
24 #endif