1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __oblabelwidget_hh
3 #define __oblabelwidget_hh
5 #include "widgetbase.hh"
6 #include "otk/widget.hh"
8 #include "otk/style.hh"
9 #include "otk/ustring.hh"
13 class LabelWidget : public otk::Widget, public WidgetBase
17 const otk::Font *_font;
18 otk::Color *_text_color;
20 otk::Style::TextJustify _justify;
22 //! Object used by Xft to render to the drawable
26 LabelWidget(otk::Widget *parent, WidgetBase::WidgetType type);
27 virtual ~LabelWidget();
29 virtual void setStyle(otk::Style *style);
31 virtual void adjust();
34 virtual void unfocus();
36 virtual void update();
38 inline const otk::ustring &text() const { return _text; }
39 void setText(const otk::ustring &text);
44 #endif // __oblabelwidget_hh