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 DataFile::DerivedObjectLoader<Panel, Widget::Loader>
22 typedef std::map<std::string, Widget *> WidgetMap;
28 Loader(Panel &, WidgetMap &);
31 void child(const std::string &);
32 void panel(const std::string &);
39 Panel &operator=(const Panel &);
44 virtual const char *get_class() const { return "panel"; }
46 void set_layout(Layout *);
47 virtual void autosize();
50 virtual void render_special(const Part &, GL::Renderer &) const;
52 virtual void on_geometry_change();
53 virtual void on_child_added(Widget &);
54 virtual void on_child_removed(Widget &);