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"
12 class LabelWidget : public otk::Widget, public WidgetBase
16 const otk::Font *_font;
17 otk::Color *_text_color;
19 otk::Style::TextJustify _justify;
21 //! Object used by Xft to render to the drawable
25 LabelWidget(otk::Widget *parent, WidgetBase::WidgetType type);
26 virtual ~LabelWidget();
28 virtual void setStyle(otk::Style *style);
30 virtual void adjust();
33 virtual void unfocus();
35 virtual void update();
37 inline const std::string &text() const { return _text; }
38 void setText(const std::string &text);
43 #endif // __oblabelwidget_hh