From fe3ed50e1da2bb4ced3172e86a3b244a9c3d4f1c Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 17:48:03 +0100 Subject: Add buttons and update draw --- src/state.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 696b657..38cc63f 100644 --- a/src/state.h +++ b/src/state.h @@ -1,18 +1,24 @@ #ifndef COMET_STATE_H #define COMET_STATE_H +#include + #include "window.h" #include "draw.h" +#include "button.h" typedef struct State State; struct State { - Window *win; - Drawable *draw; + Window *win; + Drawable *draw; + GList *btns; }; State *state_create(Window *win, Drawable *draw); +void state_add_button(State *state, Button *btn); + void state_destroy(State *state); #endif -- cgit v1.2.3