aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-05 00:35:58 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-05 00:35:58 -0400
commit2f1c8d35e6a824544714c7eed274f88121322618 (patch)
tree7cd0eafb9b436a9aca5a428fe8473d0230bafe7e /xlib.h
downloadrunes-2f1c8d35e6a824544714c7eed274f88121322618.tar.gz
runes-2f1c8d35e6a824544714c7eed274f88121322618.zip
initial commit
Diffstat (limited to 'xlib.h')
-rw-r--r--xlib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/xlib.h b/xlib.h
new file mode 100644
index 0000000..083bfb6
--- /dev/null
+++ b/xlib.h
@@ -0,0 +1,17 @@
+#ifndef _RUNES_XLIB_H
+#define _RUNES_XLIB_H
+
+#include <X11/Xlib.h>
+
+typedef struct {
+ Display *dpy;
+ Window w;
+ GC gc;
+} RunesWindow;
+
+RunesWindow *runes_window_create();
+cairo_surface_t *runes_surface_create(RunesWindow *w);
+void runes_window_flush(RunesWindow *w);
+void runes_window_destroy(RunesWindow *w);
+
+#endif