diff options
Diffstat (limited to 'src/ui/labelwidget.h')
-rw-r--r-- | src/ui/labelwidget.h | 22 |
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 | |||
7 | iDeclareWidgetClass(LabelWidget) | ||
8 | iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command) | ||
9 | |||
10 | iLocalDef iLabelWidget *newEmpty_LabelWidget(void) { | ||
11 | return new_LabelWidget("", 0, 0, NULL); | ||
12 | } | ||
13 | |||
14 | void setFont_LabelWidget (iLabelWidget *, int fontId); | ||
15 | void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */ | ||
16 | void setTextCStr_LabelWidget (iLabelWidget *, const char *text); | ||
17 | |||
18 | void updateSize_LabelWidget (iLabelWidget *); | ||
19 | void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */ | ||
20 | void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */ | ||
21 | |||
22 | const iString *command_LabelWidget (const iLabelWidget *); | ||