X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuswidget.hh;fp=otk%2Ffocuswidget.hh;h=0000000000000000000000000000000000000000;hb=99cd843fc6dc7a7f55b6c90fd1162f233853aad2;hp=886a2e3194746dfff03e763c198813073924f817;hpb=d2df40965bbf042e062b65d6adc12bc158d503eb;p=chaz%2Fopenbox diff --git a/otk/focuswidget.hh b/otk/focuswidget.hh deleted file mode 100644 index 886a2e31..00000000 --- a/otk/focuswidget.hh +++ /dev/null @@ -1,47 +0,0 @@ -// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __focuswidget_hh -#define __focuswidget_hh - -#include "widget.hh" -#include "application.hh" - -namespace otk { - -class FocusWidget : public Widget { - -public: - - FocusWidget(Widget *parent, Direction = Horizontal); - virtual ~FocusWidget(); - - virtual void focus(void); - virtual void unfocus(void); - - virtual void setTexture(RenderTexture *texture); - virtual void setBorderColor(const RenderColor *color); - - inline void setUnfocusTexture(RenderTexture *texture) - { _unfocus_texture = texture; } - inline RenderTexture *getUnfocusTexture(void) const - { return _unfocus_texture; } - - inline void setUnfocusBorderColor(const RenderColor *color) - { _unfocus_bcolor = color; } - inline const RenderColor *getUnfocusBorderColor(void) const - { return _unfocus_bcolor; } - - inline bool isFocused(void) const { return _focused; } - inline bool isUnfocused(void) const { return !_focused; } - -private: - - RenderTexture *_unfocus_texture; - RenderTexture *_focus_texture; - - const RenderColor *_unfocus_bcolor; - const RenderColor *_focus_bcolor; -}; - -} - -#endif // __focuswidget_hh