summaryrefslogtreecommitdiff
path: root/src/widget/widget_label.h
blob: f976bbca5fafd9f1674716736ee25a9ee84653cd (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
26

#ifndef WIDGET_LABEL_H

#define WIDGET_LABEL_H

#include "main.h"

typedef struct widget_label
{
	int x, y;
	int w, h;
	char *text;
	int bind;
} widget_label_t;

#define WIDGET_LABEL_RIGHT	1
#define WIDGET_LABEL_LEFT	2
#define WIDGET_LABEL_CENTER	3

extern widget_label_t* newWidgetLabel(char *text, int x, int y, int bind);
extern void drawWidgetLabel(widget_label_t *p);
extern void eventWidgetLabel(widget_label_t *p);
extern void destroyWidgetLabel(widget_label_t *p);

#endif