blob: 7df70d306e57df459adf8e8ad4d54caa8c45f656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef COMET_BUTTON_H
#define COMET_BUTTON_H
#include <stdbool.h>
// TODO: Generic button shapes/actions
typedef struct Button Button;
typedef void (* ButtonAction)(Button *btn);
struct Button {
ButtonAction action;
char *text;
};
Button *button_create(const char *text);
void button_set_action(Button *btn, ButtonAction action);
void button_destroy(Button *btn);
#endif
// vim: ts=4 sw=4 et
|