]> Dogcows Code - chaz/openbox/blobdiff - otk/focuswidget.hh
ignore the latex dir
[chaz/openbox] / otk / focuswidget.hh
index 8397734d48e3050be4bfe2600e64817d526a253c..886a2e3194746dfff03e763c198813073924f817 100644 (file)
@@ -1,37 +1,45 @@
+// -*- 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 OtkFocusWidget : public OtkWidget {
+class FocusWidget : public Widget {
 
 public:
 
-  OtkFocusWidget(OtkWidget *parent, Direction = Horizontal);
-  OtkFocusWidget(Style *style, Direction direction = Horizontal,
-                 Cursor cursor = 0, int bevel_width = 1);
+  FocusWidget(Widget *parent, Direction = Horizontal);
+  virtual ~FocusWidget();
 
   virtual void focus(void);
   virtual void unfocus(void);
 
-  void setTexture(BTexture *texture);
+  virtual void setTexture(RenderTexture *texture);
+  virtual void setBorderColor(const RenderColor *color);
 
-  inline void setUnfocusTexture(BTexture *texture)
+  inline void setUnfocusTexture(RenderTexture *texture)
   { _unfocus_texture = texture; }
-  inline BTexture *getUnfocusTexture(void) const
+  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:
 
-  BTexture *_unfocus_texture;
-  BTexture *_focus_texture;
+  RenderTexture *_unfocus_texture;
+  RenderTexture *_focus_texture;
 
-  bool _focused;
+  const RenderColor *_unfocus_bcolor;
+  const RenderColor *_focus_bcolor;
 };
 
 }
This page took 0.025734 seconds and 4 git commands to generate.