summaryrefslogtreecommitdiff
path: root/otk/focuswidget.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
commit99cd843fc6dc7a7f55b6c90fd1162f233853aad2 (patch)
tree42b25c02cbf984fe29b378e9d0dbfbca1436c87b /otk/focuswidget.hh
parentd2df40965bbf042e062b65d6adc12bc158d503eb (diff)
Brand spankin new widgets for otk (Label and Button).
Add a new Size class. Rect, Point, and Size are immutable classes. Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
Diffstat (limited to 'otk/focuswidget.hh')
-rw-r--r--otk/focuswidget.hh47
1 files changed, 0 insertions, 47 deletions
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