aboutsummaryrefslogtreecommitdiff
path: root/x11.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11.h')
-rw-r--r--x11.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11.h b/x11.h
new file mode 100644
index 0000000..ce21a6d
--- /dev/null
+++ b/x11.h
@@ -0,0 +1,20 @@
+#ifndef COMET_X11_H
+#define COMET_X11_H
+
+#include <cairo.h>
+
+typedef struct Window Window;
+
+Window *window_create(void);
+
+cairo_t *window_get_context(Window *win);
+
+double window_get_scale(Window *win);
+
+void window_paint_surface(Window *win, cairo_surface_t *surface, int width, int height);
+
+void window_destroy(Window *win);
+
+#endif
+
+// vim: set ts=4 sw=4 et