blob: bd1b5318466d32ac7d4e64377ce1a7f665662b46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef WIDGET_LABEL_H
#define WIDGET_LABEL_H
#include "main.h"
#include "widget.h"
#define WIDGET_LABEL_RIGHT 1
#define WIDGET_LABEL_LEFT 2
#define WIDGET_LABEL_CENTER 3
typedef struct widget_label {
int w, h;
char *text;
int bind;
} widget_label_t;
extern widget_t *label_new(char *text, int x, int y, int bind);
extern void label_draw(widget_t *widget);
extern void label_event(widget_t *widget);
extern void label_destroy(widget_t *widget);
#endif /* WIDGET_LABEL_H */
|