summaryrefslogtreecommitdiff
path: root/otk/widget.hh
diff options
context:
space:
mode:
authorMarius Nita <marius@cs.pdx.edu>2002-11-16 02:15:49 +0000
committerMarius Nita <marius@cs.pdx.edu>2002-11-16 02:15:49 +0000
commita3d036f60ed2333622ee9b61dbddcdc8fbc497c3 (patch)
treedae05770ec9c7aab9529e57361cb7b87f956de0f /otk/widget.hh
parente53fbcf092c40b22ccc4c5f23795e12c9862c338 (diff)
added otkapplication and event stuff, changed other files to accomodate for this, changed the test.
no idea if anything runs yet. it compiles =)
Diffstat (limited to 'otk/widget.hh')
-rw-r--r--otk/widget.hh14
1 files changed, 9 insertions, 5 deletions
diff --git a/otk/widget.hh b/otk/widget.hh
index 60fd2ddb..473aa812 100644
--- a/otk/widget.hh
+++ b/otk/widget.hh
@@ -1,5 +1,5 @@
-#ifndef __focus_hh
-#define __focus_hh
+#ifndef __widget_hh
+#define __widget_hh
#include <string>
#include <list>
@@ -8,10 +8,12 @@
#include "point.hh"
#include "texture.hh"
#include "style.hh"
+#include "eventhandler.hh"
+#include "application.hh"
namespace otk {
-class OtkWidget {
+class OtkWidget : public OtkEventHandler {
public:
@@ -20,6 +22,8 @@ public:
typedef std::list<OtkWidget *> OtkWidgetList;
OtkWidget(OtkWidget *parent, Direction = Horizontal);
+ OtkWidget(OtkApplication *app, Direction direction = Horizontal,
+ Cursor cursor = 0, int bevel_width = 1);
OtkWidget(Style *style, Direction direction = Horizontal,
Cursor cursor = 0, int bevel_width = 1);
@@ -27,8 +31,8 @@ public:
virtual void update(void);
- virtual bool expose(const XExposeEvent &e);
- virtual bool configure(const XConfigureEvent &e);
+ int exposeHandler(const XExposeEvent &e);
+ int configureHandler(const XConfigureEvent &e);
inline Window getWindow(void) const { return _window; }
inline const OtkWidget *getParent(void) const { return _parent; }