#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; GList *btns; gint id; }; State *state_create(Window *win, Drawable *draw); void state_add_button(State *state, Button *btn); void state_remove_button(State *state, Button *btn); void state_order_button(State *state); void state_redraw(State *state, bool changed_layout); void state_destroy(State *state); #endif // vim: ts=4 sw=4 et