From c2ef5b291c1ef9120ac9d5c29b378317ab189212 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 2 Nov 2023 19:57:11 +0100 Subject: Add basic x11 and drawing scaffolding --- x11.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x11.h (limited to 'x11.h') 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 + +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 -- cgit v1.2.3