X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuswidget.hh;h=bc69ad6b6ae866e54526c16dd45799566b368eaf;hb=346151534bc630b6458a6d5059255759c028fcb2;hp=8397734d48e3050be4bfe2600e64817d526a253c;hpb=09fa1f3a986b0ddf15e1c3669b3545fedf613e8e;p=chaz%2Fopenbox diff --git a/otk/focuswidget.hh b/otk/focuswidget.hh index 8397734d..bc69ad6b 100644 --- a/otk/focuswidget.hh +++ b/otk/focuswidget.hh @@ -2,6 +2,7 @@ #define __focuswidget_hh #include "widget.hh" +#include "application.hh" namespace otk { @@ -9,20 +10,25 @@ class OtkFocusWidget : public OtkWidget { public: - OtkFocusWidget(OtkWidget *parent, Direction = Horizontal); - OtkFocusWidget(Style *style, Direction direction = Horizontal, - Cursor cursor = 0, int bevel_width = 1); + OtkFocusWidget(otk::OtkWidget *parent, Direction = Horizontal); + virtual ~OtkFocusWidget(); virtual void focus(void); virtual void unfocus(void); - void setTexture(BTexture *texture); + virtual void setTexture(otk::BTexture *texture); + virtual void setBorderColor(const otk::BColor *color); - inline void setUnfocusTexture(BTexture *texture) + inline void setUnfocusTexture(otk::BTexture *texture) { _unfocus_texture = texture; } - inline BTexture *getUnfocusTexture(void) const + inline otk::BTexture *getUnfocusTexture(void) const { return _unfocus_texture; } + inline void setUnfocusBorderColor(const otk::BColor *color) + { _unfocus_bcolor = color; } + inline const otk::BColor *getUnfocusBorderColor(void) const + { return _unfocus_bcolor; } + inline bool isFocused(void) const { return _focused; } inline bool isUnfocused(void) const { return !_focused; } @@ -31,7 +37,8 @@ private: BTexture *_unfocus_texture; BTexture *_focus_texture; - bool _focused; + const BColor *_unfocus_bcolor; + const BColor *_focus_bcolor; }; }