summaryrefslogtreecommitdiff
path: root/src/widget/label.h
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-02-03 13:56:55 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2009-02-03 13:56:55 +0100
commit87821f04c9565450d8e724be76993ae5ea2c20c4 (patch)
treecd98fd39a789464294fd05ae00eeea5bd9411138 /src/widget/label.h
parent509890f14896d2064916555c04a3bfeec537cb1d (diff)
Revert "Revert "First pass renaming sreen and widgets.""
This reverts commit 509890f14896d2064916555c04a3bfeec537cb1d.
Diffstat (limited to 'src/widget/label.h')
-rw-r--r--src/widget/label.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/widget/label.h b/src/widget/label.h
new file mode 100644
index 0000000..743db7e
--- /dev/null
+++ b/src/widget/label.h
@@ -0,0 +1,24 @@
+
+#ifndef WIDGET_LABEL_H
+
+# define WIDGET_LABEL_H
+
+# include "main.h"
+# include "widget.h"
+
+typedef struct widget_label {
+ 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_t *newWidgetLabel(char *text, int x, int y, int bind);
+extern void drawWidgetLabel(widget_t * widget);
+extern void eventWidgetLabel(widget_t * widget);
+extern void destroyWidgetLabel(widget_t * widget);
+
+#endif