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.h14
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 @@
7iDeclareWidgetClass(LabelWidget) 7iDeclareWidgetClass(LabelWidget)
8iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command) 8iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command)
9 9
10iLocalDef iLabelWidget *newEmpty_LabelWidget(void) {
11 return new_LabelWidget("", 0, 0, NULL);
12}
13
14void setFont_LabelWidget (iLabelWidget *, int fontId); 10void setFont_LabelWidget (iLabelWidget *, int fontId);
15void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */ 11void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */
16void setTextCStr_LabelWidget (iLabelWidget *, const char *text); 12void setTextCStr_LabelWidget (iLabelWidget *, const char *text);
13void setAlignVisually_LabelWidget(iLabelWidget *, iBool alignVisual);
17 14
18void updateSize_LabelWidget (iLabelWidget *); 15void updateSize_LabelWidget (iLabelWidget *);
19void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */ 16void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */
20void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */ 17void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */
21 18
22const iString *command_LabelWidget (const iLabelWidget *); 19const iString *command_LabelWidget (const iLabelWidget *);
20
21iLocalDef iLabelWidget *newEmpty_LabelWidget(void) {
22 return new_LabelWidget("", 0, 0, NULL);
23}
24iLocalDef 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}