summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/labelwidget.h')
-rw-r--r--src/ui/labelwidget.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ui/labelwidget.h b/src/ui/labelwidget.h
new file mode 100644
index 00000000..0563728e
--- /dev/null
+++ b/src/ui/labelwidget.h
@@ -0,0 +1,22 @@
1#pragma once
2
3/* Text label/button. */
4
5#include "widget.h"
6
7iDeclareWidgetClass(LabelWidget)
8iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command)
9
10iLocalDef iLabelWidget *newEmpty_LabelWidget(void) {
11 return new_LabelWidget("", 0, 0, NULL);
12}
13
14void setFont_LabelWidget (iLabelWidget *, int fontId);
15void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */
16void setTextCStr_LabelWidget (iLabelWidget *, const char *text);
17
18void updateSize_LabelWidget (iLabelWidget *);
19void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */
20void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */
21
22const iString *command_LabelWidget (const iLabelWidget *);