diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-02 19:57:11 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-02 19:57:11 +0100 |
| commit | c2ef5b291c1ef9120ac9d5c29b378317ab189212 (patch) | |
| tree | 94df5b189fd1e6a01413271c458eeeda48108e09 /x11.h | |
| parent | 6c7cdd7ccaea3873b84d5e2def15984bfeaf9da0 (diff) | |
Add basic x11 and drawing scaffolding
Diffstat (limited to 'x11.h')
| -rw-r--r-- | x11.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |
