blob: 062cb07e719ff517f8a02c21cf42a1fe43a405bc (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef BUTTON_H
#define BUTTON_H
#include <gfx.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
enum
{
BUTTON_LEFT,
BUTTON_MID,
BUTTON_RIGHT,
MAX_BUTTON_SPRITES
};
struct button
{
const char *text;
short x, y, w;
};
bool button_is_pressed(const struct button *b);
int button_render(const struct button *b);
extern struct sprite button_sprites[MAX_BUTTON_SPRITES];
#ifdef __cplusplus
}
#endif
#endif /* BUTTON_H */
|