#pragma once /* Text label/button. */ #include "widget.h" iDeclareWidgetClass(LabelWidget) iDeclareObjectConstructionArgs(LabelWidget, const char *label, int key, int kmods, const char *command) void setAlignVisually_LabelWidget(iLabelWidget *, iBool alignVisual); 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 *); iLocalDef iLabelWidget *newEmpty_LabelWidget(void) { return new_LabelWidget("", 0, 0, NULL); } iLocalDef iLabelWidget *newIcon_LabelWidget(const char *label, int key, int kmods, const char *command) { iLabelWidget *d = new_LabelWidget(label, key, kmods, command); setAlignVisually_LabelWidget(d, iTrue); return d; }