2009-09-20 15:44:14 +02:00
|
|
|
#ifndef _I3_INPUT
|
|
|
|
#define _I3_INPUT
|
|
|
|
|
|
|
|
#include <err.h>
|
|
|
|
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
2011-01-12 10:12:24 +01:00
|
|
|
#define FREE(pointer) do { \
|
|
|
|
if (pointer != NULL) { \
|
|
|
|
free(pointer); \
|
|
|
|
pointer = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
while (0)
|
2009-09-20 15:44:14 +02:00
|
|
|
|
2011-01-28 00:41:53 +01:00
|
|
|
extern xcb_window_t root;
|
|
|
|
|
2009-09-20 15:44:14 +02:00
|
|
|
char *convert_ucs_to_utf8(char *input);
|
2009-09-20 16:54:29 +02:00
|
|
|
char *convert_utf8_to_ucs2(char *input, int *real_strlen);
|
2010-03-24 03:28:38 +01:00
|
|
|
uint32_t get_mod_mask(xcb_connection_t *conn, uint32_t keycode);
|
2009-09-20 15:44:14 +02:00
|
|
|
xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
|
|
|
|
int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
|
|
|
|
void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);
|
|
|
|
|
|
|
|
#endif
|