#ifndef COMET_BUTTON_H #define COMET_BUTTON_H #include // TODO: Generic button shapes/actions typedef struct Button Button; typedef void (* ButtonAction)(Button *btn); struct Button { bool fixed_size; ButtonAction action; char *text; }; Button *button_create(const char *text, bool fixed_size); void button_set_action(Button *btn, ButtonAction action); void button_destroy(Button *btn); #endif // vim: ts=4 sw=4 et