]> git.tdb.fi Git - libs/gltk.git/blob - source/panel.h
Initial revision
[libs/gltk.git] / source / panel.h
1 #ifndef MSP_GLTK_PANEL_H_
2 #define MSP_GLTK_PANEL_H_
3
4 #include "widget.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 class Panel: public Widget
10 {
11 public:
12         Panel(const Resources &);
13         ~Panel();
14         void add(Widget &);
15 private:
16         typedef std::list<Widget *> ChildSeq;
17
18         ChildSeq children;
19
20         Panel(const Panel &);
21         Panel &operator=(const Panel &);
22         const char *get_class() const { return "panel"; }
23         void render_part(const Part &) const;
24         void on_button_press(int, int, unsigned);
25         void on_button_release(int, int, unsigned);
26 };
27
28 } // namespace GLtk
29 } // namespace Msp
30
31 #endif