1 #ifndef MSP_GLTK_PANEL_H_
2 #define MSP_GLTK_PANEL_H_
12 Panels are containers for other widgets. Panel styles should have a special
13 part "children" to render the child widgets. All properties of this part are
16 class Panel: public Container
19 class Loader: public Widget::Loader
22 typedef std::map<std::string, Widget *> WidgetMap;
29 Loader(Panel &, WidgetMap &);
32 void child(const std::string &);
33 void panel(const std::string &);
40 Panel &operator=(const Panel &);
45 virtual const char *get_class() const { return "panel"; }
47 void set_layout(Layout *);
48 virtual void autosize();
51 virtual void render_special(const Part &, GL::Renderer &) const;
53 virtual void on_geometry_change();
54 virtual void on_child_added(Widget &);
55 virtual void on_child_removed(Widget &);