X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Flabelwidget.hh;h=92c35c3c56d5c93388e7616b191bc15860311f97;hb=bd39de609bcd340dd00fa9dab1519ee2a3aac458;hp=01662f85fb3bd8a116bb7e3e91b8c7387f750c90;hpb=2ae2b257d39ea62640c2590f794e4275c6db1cd4;p=chaz%2Fopenbox diff --git a/src/labelwidget.hh b/src/labelwidget.hh index 01662f85..92c35c3c 100644 --- a/src/labelwidget.hh +++ b/src/labelwidget.hh @@ -2,19 +2,19 @@ #ifndef __oblabelwidget_hh #define __oblabelwidget_hh +#include "widgetbase.hh" #include "otk/widget.hh" #include "otk/font.hh" #include "otk/style.hh" -#include "widget.hh" namespace ob { -class OBLabelWidget : public otk::OtkWidget, public OBWidget +class LabelWidget : public otk::Widget, public WidgetBase { private: void setTextures(); - const otk::BFont *_font; - otk::BColor *_text_color; + const otk::Font *_font; + otk::Color *_text_color; int _sidemargin; otk::Style::TextJustify _justify; std::string _text; @@ -22,8 +22,8 @@ private: XftDraw *_xftdraw; public: - OBLabelWidget(otk::OtkWidget *parent, OBWidget::WidgetType type); - virtual ~OBLabelWidget(); + LabelWidget(otk::Widget *parent, WidgetBase::WidgetType type); + virtual ~LabelWidget(); virtual void setStyle(otk::Style *style);