blob: 0563728e1b3e4c242ddc752552776d1f711e1e41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
/* Text label/button. */
#include "widget.h"
iDeclareWidgetClass(LabelWidget)
iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command)
iLocalDef iLabelWidget *newEmpty_LabelWidget(void) {
return new_LabelWidget("", 0, 0, NULL);
}
void setFont_LabelWidget (iLabelWidget *, int fontId);
void setText_LabelWidget (iLabelWidget *, const iString *text); /* resizes widget */
void setTextCStr_LabelWidget (iLabelWidget *, const char *text);
void updateSize_LabelWidget (iLabelWidget *);
void updateText_LabelWidget (iLabelWidget *, const iString *text); /* not resized */
void updateTextCStr_LabelWidget (iLabelWidget *, const char *text); /* not resized */
const iString *command_LabelWidget (const iLabelWidget *);
|