18 #include <xcb/xproto.h>
19 #include <xcb/xcb_keysyms.h>
22 #include <pango/pango.h>
56 xcb_query_font_reply_t *
info;
64 PangoFontDescription *pango_desc;
73 #define LOG(fmt, ...) verboselog("[libi3] " __FILE__ " " fmt, ##__VA_ARGS__)
77 #define ELOG(fmt, ...) errorlog("[libi3] ERROR: " fmt, ##__VA_ARGS__)
109 void *
srealloc(
void *ptr,
size_t size);
116 char *
sstrdup(
const char *str);
123 int sasprintf(
char **strp,
const char *fmt, ...);
158 #define I3STRING_FREE(str) \
161 i3string_free(str); \
206 uint32_t message_type,
const uint8_t *payload);
220 uint32_t *reply_length, uint8_t **reply);
246 #if defined(__APPLE__)
254 char *strndup(
const char *str,
size_t n);
276 xcb_key_symbols_t *symbols,
277 xcb_get_modifier_mapping_reply_t *modmap_reply);
318 void set_font_colors(xcb_gcontext_t gc, uint32_t foreground, uint32_t background);
329 xcb_gcontext_t gc,
int x,
int y,
int max_width);
336 xcb_gcontext_t gc,
int x,
int y,
int max_width);