X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbackgroundwidget.hh;h=640ac45e37d04834873eca6b273d2415e36482bf;hb=d73d4247e7b98df679ca81b349da26dd1e2fabc1;hp=0cbfb3fa11b2c65cf88f7aeb6ab70d12c60e9f02;hpb=70eb03ad50e1a71fd64c8cb1ebabbff311850553;p=chaz%2Fopenbox diff --git a/src/backgroundwidget.hh b/src/backgroundwidget.hh index 0cbfb3fa..640ac45e 100644 --- a/src/backgroundwidget.hh +++ b/src/backgroundwidget.hh @@ -1,25 +1,29 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __obbackgroundwidget_hh -#define __obbackgroundwidget_hh +#ifndef __backgroundwidget_hh +#define __backgroundwidget_hh -#include "otk/focuswidget.hh" -#include "widget.hh" +#include "otk/widget.hh" +#include "widgetbase.hh" namespace ob { -class OBBackgroundWidget : public otk::OtkFocusWidget, public OBWidget +class BackgroundWidget : public otk::Widget, public WidgetBase { private: + void setTextures(); public: - OBBackgroundWidget(otk::OtkWidget *parent, OBWidget::WidgetType type); - virtual ~OBBackgroundWidget(); + BackgroundWidget(otk::Widget *parent, WidgetBase::WidgetType type); + virtual ~BackgroundWidget(); - virtual void setStyle(otk::Style *style); + virtual void setStyle(otk::RenderStyle *style); virtual void adjust(); + + virtual void focus(); + virtual void unfocus(); }; } -#endif // __obbackgroundwidget_hh +#endif // __backgroundwidget_hh