]> git.tdb.fi Git - libs/gltk.git/blob - source/root.h
809780cf291829720cf328fd5bfe9604cf63b01b
[libs/gltk.git] / source / root.h
1 #ifndef MSP_GLTK_ROOT_H_
2 #define MSP_GLTK_ROOT_H_
3
4 #include <msp/gbase/window.h>
5 #include "panel.h"
6
7 namespace Msp {
8 namespace GLtk {
9
10 class Root: public Panel
11 {
12 public:
13         Root(Resources &, Window &);
14 private:
15         Window &window;
16
17         const char *get_class() const { return "root"; }
18         void button_press_event(int, int, unsigned, unsigned);
19         void button_release_event(int, int, unsigned, unsigned);
20         void pointer_motion_event(int, int);
21         void key_press_event(unsigned, unsigned, wchar_t);
22         void key_release_event(unsigned, unsigned);
23         void translate_coords(int &, int &);
24 };
25
26 } // namespace GLtk
27 } // namespace Msp
28
29 #endif