diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-18 02:28:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-18 02:28:44 +0000 |
| commit | 70eb03ad50e1a71fd64c8cb1ebabbff311850553 (patch) | |
| tree | 0cef2e44f7e97c0d00281df8746e7fb7f2c15f5f /otk/focuswidget.hh | |
| parent | 6bf858e4f4fc19914a36d51546278e6464ec00e0 (diff) | |
add an OBBackgroundWidget and use it for setting colors so far.
Diffstat (limited to 'otk/focuswidget.hh')
| -rw-r--r-- | otk/focuswidget.hh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/otk/focuswidget.hh b/otk/focuswidget.hh index d33d2abf..2a97c6aa 100644 --- a/otk/focuswidget.hh +++ b/otk/focuswidget.hh @@ -16,13 +16,19 @@ public: virtual void focus(void); virtual void unfocus(void); - void setTexture(BTexture *texture); + virtual void setTexture(BTexture *texture); + virtual void setBorderColor(const BColor *color); inline void setUnfocusTexture(BTexture *texture) { _unfocus_texture = texture; } inline BTexture *getUnfocusTexture(void) const { return _unfocus_texture; } + inline void setUnfocusBorderColor(const BColor *color) + { _unfocus_bcolor = color; } + inline const 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; }; } |
