X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuswidget.hh;h=886a2e3194746dfff03e763c198813073924f817;hb=e0eaee86ded5ae63eaaf82da22df5c8845eb3724;hp=bc69ad6b6ae866e54526c16dd45799566b368eaf;hpb=5869cc29ef15181427e65079d9a52c5d21190206;p=chaz%2Fopenbox diff --git a/otk/focuswidget.hh b/otk/focuswidget.hh index bc69ad6b..886a2e31 100644 --- a/otk/focuswidget.hh +++ b/otk/focuswidget.hh @@ -1,3 +1,4 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- #ifndef __focuswidget_hh #define __focuswidget_hh @@ -6,27 +7,27 @@ namespace otk { -class OtkFocusWidget : public OtkWidget { +class FocusWidget : public Widget { public: - OtkFocusWidget(otk::OtkWidget *parent, Direction = Horizontal); - virtual ~OtkFocusWidget(); + FocusWidget(Widget *parent, Direction = Horizontal); + virtual ~FocusWidget(); virtual void focus(void); virtual void unfocus(void); - virtual void setTexture(otk::BTexture *texture); - virtual void setBorderColor(const otk::BColor *color); + virtual void setTexture(RenderTexture *texture); + virtual void setBorderColor(const RenderColor *color); - inline void setUnfocusTexture(otk::BTexture *texture) + inline void setUnfocusTexture(RenderTexture *texture) { _unfocus_texture = texture; } - inline otk::BTexture *getUnfocusTexture(void) const + inline RenderTexture *getUnfocusTexture(void) const { return _unfocus_texture; } - inline void setUnfocusBorderColor(const otk::BColor *color) + inline void setUnfocusBorderColor(const RenderColor *color) { _unfocus_bcolor = color; } - inline const otk::BColor *getUnfocusBorderColor(void) const + inline const RenderColor *getUnfocusBorderColor(void) const { return _unfocus_bcolor; } inline bool isFocused(void) const { return _focused; } @@ -34,11 +35,11 @@ public: private: - BTexture *_unfocus_texture; - BTexture *_focus_texture; + RenderTexture *_unfocus_texture; + RenderTexture *_focus_texture; - const BColor *_unfocus_bcolor; - const BColor *_focus_bcolor; + const RenderColor *_unfocus_bcolor; + const RenderColor *_focus_bcolor; }; }