diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-23 00:14:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-23 00:14:44 +0000 |
| commit | dd6f90684899e8e26e653af4b2e7e7eab1abf798 (patch) | |
| tree | 6abc26138d2e929dc05cad1435ec02664eb4c988 /src/labelwidget.hh | |
| parent | 17d63184998b747e1a0554dc4364a36238b039e1 (diff) | |
compiles with the new render subsystem...
Diffstat (limited to 'src/labelwidget.hh')
| -rw-r--r-- | src/labelwidget.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/labelwidget.hh b/src/labelwidget.hh index 094cf868..6373e1d3 100644 --- a/src/labelwidget.hh +++ b/src/labelwidget.hh @@ -5,7 +5,7 @@ #include "widgetbase.hh" #include "otk/widget.hh" #include "otk/font.hh" -#include "otk/style.hh" +#include "otk/renderstyle.hh" #include "otk/ustring.hh" namespace ob { @@ -15,18 +15,16 @@ class LabelWidget : public otk::Widget, public WidgetBase private: void setTextures(); const otk::Font *_font; - otk::Color *_text_color; + otk::RenderColor *_text_color; int _sidemargin; - otk::Style::TextJustify _justify; + otk::RenderStyle::TextJustify _justify; otk::ustring _text; - //! Object used by Xft to render to the drawable - XftDraw *_xftdraw; public: LabelWidget(otk::Widget *parent, WidgetBase::WidgetType type); virtual ~LabelWidget(); - virtual void setStyle(otk::Style *style); + virtual void setStyle(otk::RenderStyle *style); virtual void adjust(); @@ -35,6 +33,8 @@ public: virtual void update(); + virtual void renderForeground(); + inline const otk::ustring &text() const { return _text; } void setText(const otk::ustring &text); }; |
