diff options
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r-- | src/ui/labelwidget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index d9842a40..ffdacb99 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -341,6 +341,12 @@ const iString *command_LabelWidget(const iLabelWidget *d) { | |||
341 | return &d->command; | 341 | return &d->command; |
342 | } | 342 | } |
343 | 343 | ||
344 | iLabelWidget *newColor_LabelWidget(const char *text, int color) { | ||
345 | iLabelWidget *d = new_LabelWidget(format_CStr("%s%s", escape_Color(color), text), 0, 0, NULL); | ||
346 | setFlags_Widget(as_Widget(d), frameless_WidgetFlag, iTrue); | ||
347 | return d; | ||
348 | } | ||
349 | |||
344 | iBeginDefineSubclass(LabelWidget, Widget) | 350 | iBeginDefineSubclass(LabelWidget, Widget) |
345 | .processEvent = (iAny *) processEvent_LabelWidget_, | 351 | .processEvent = (iAny *) processEvent_LabelWidget_, |
346 | .draw = (iAny *) draw_LabelWidget_, | 352 | .draw = (iAny *) draw_LabelWidget_, |