summaryrefslogtreecommitdiff
path: root/include/glwidgets.h
blob: 86688ef51e84c21d3f615c1f07e20a6004fb3af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __GLWIDGETS_H__
#define __GLWIDGETS_H__

#include <Exceptions.h>

namespace mogltk {
    class widget : public Base {
      public:
	  virtual ~widget();
	bool PointerEvent(int x, int y);
      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