aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
commitf8363e89257e8b0a4ff71accbd7b6be22935274f (patch)
tree62e6b17d11b174f6683bf090ed678dddd7a263d4 /window.h
parent41729222431449a81535b28ad27ce2620cb5819b (diff)
Attach state to the event loop
Diffstat (limited to 'window.h')
-rw-r--r--window.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/window.h b/window.h
index 009966a..5ee075f 100644
--- a/window.h
+++ b/window.h
@@ -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);