diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
| commit | f8363e89257e8b0a4ff71accbd7b6be22935274f (patch) | |
| tree | 62e6b17d11b174f6683bf090ed678dddd7a263d4 /window.h | |
| parent | 41729222431449a81535b28ad27ce2620cb5819b (diff) | |
Attach state to the event loop
Diffstat (limited to 'window.h')
| -rw-r--r-- | window.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -7,6 +7,15 @@ typedef struct Window Window; +struct Window { + Connection *con; + xcb_drawable_t window; + cairo_surface_t *surface; + cairo_t *cr; + int x, y; + int width, height; +}; + Window *window_create(Connection *con); cairo_t *window_get_context(Window *win); |
