Label::Label(Widget *parent)
: Widget(parent), _text("")
{
- const ScreenInfo *info = Display::screenInfo(screen());
- _xftdraw = XftDrawCreate(Display::display, window(), info->visual(),
- info->colormap());
}
Label::~Label()
{
- XftDrawDestroy(_xftdraw);
}
void Label::setStyle(Style *style)
Widget::update();
- ft->drawString(_xftdraw, x, 0, *style()->getTextUnfocus(), t);
+ display->renderControl(_screen)->
+ drawString(this, *ft, x, 0, *style()->getTextUnfocus(), t);
} else
Widget::update();
}