diff options
Diffstat (limited to 'src/ui/labelwidget.h')
-rw-r--r-- | src/ui/labelwidget.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ui/labelwidget.h b/src/ui/labelwidget.h index 0563728e..aee853a5 100644 --- a/src/ui/labelwidget.h +++ b/src/ui/labelwidget.h | |||
@@ -7,16 +7,22 @@ | |||
7 | iDeclareWidgetClass(LabelWidget) | 7 | iDeclareWidgetClass(LabelWidget) |
8 | iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command) | 8 | iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command) |
9 | 9 | ||
10 | iLocalDef iLabelWidget *newEmpty_LabelWidget(void) { | ||
11 | return new_LabelWidget("", 0, 0, NULL); | ||
12 | } | ||
13 | |||
14 | void setFont_LabelWidget (iLabelWidget *, int fontId); | 10 | void setFont_LabelWidget (iLabelWidget *, int fontId); |
15 | void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */ | 11 | void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */ |
16 | void setTextCStr_LabelWidget (iLabelWidget *, const char *text); | 12 | void setTextCStr_LabelWidget (iLabelWidget *, const char *text); |
13 | void setAlignVisually_LabelWidget(iLabelWidget *, iBool alignVisual); | ||
17 | 14 | ||
18 | void updateSize_LabelWidget (iLabelWidget *); | 15 | void updateSize_LabelWidget (iLabelWidget *); |
19 | void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */ | 16 | void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */ |
20 | void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */ | 17 | void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */ |
21 | 18 | ||
22 | const iString *command_LabelWidget (const iLabelWidget *); | 19 | const iString *command_LabelWidget (const iLabelWidget *); |
20 | |||
21 | iLocalDef iLabelWidget *newEmpty_LabelWidget(void) { | ||
22 | return new_LabelWidget("", 0, 0, NULL); | ||
23 | } | ||
24 | iLocalDef iLabelWidget *newIcon_LabelWidget(const char *label, int key, int kmods, const char *command) { | ||
25 | iLabelWidget *d = new_LabelWidget(label, key, kmods, command); | ||
26 | setAlignVisually_LabelWidget(d, iTrue); | ||
27 | return d; | ||
28 | } | ||