aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.h
blob: 5aaa1cabef04dec82e24326eae82b69e0db67de6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _RUNES_XLIB_H
#define _RUNES_XLIB_H

#include <X11/Xlib.h>

struct runes_window {
    Display *dpy;
    Window w;
    GC gc;
    XIC ic;
};

struct xlib_loop_data {
    struct loop_data data;
    XEvent e;
};

RunesWindow *runes_window_create();
cairo_surface_t *runes_surface_create(RunesWindow *w);
void runes_loop_init(RunesTerm *t, uv_loop_t *loop);
void runes_window_destroy(RunesWindow *w);

#endif