From fae0c2bfe95a122de0f165791690dc18928a931c Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 14 Nov 2003 17:21:14 +0000 Subject: Started working on widgets. --- include/glwidgets.h | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'include/glwidgets.h') diff --git a/include/glwidgets.h b/include/glwidgets.h index 86688ef..b606a14 100644 --- a/include/glwidgets.h +++ b/include/glwidgets.h @@ -1,20 +1,15 @@ -#ifndef __GLWIDGETS_H__ -#define __GLWIDGETS_H__ - -#include - -namespace mogltk { - class widget : public Base { - public: - virtual ~widget(); - bool PointerEvent(int x, int y); +#ifndef __GLWIDGETS_H__ +#define __GLWIDGETS_H__ + +#include + +namespace mogltk { + class glRoot : public Root { + public: + glRoot(shape *); protected: - widget(widget * father, int x, int y, int sx, int sy) throw (GeneralException); - private: - int x, y, sx, sy; - widget * father, * next, * prev, * child, * root; - static widget * cur_root, * focused; - }; -}; - -#endif + virtual void draw(); + }; +}; + +#endif -- cgit v1.2.3