1 // vim: set expandtab tabstop=4 shiftwidth=4:
3 #ifndef BIFE_CONTAINER_H
4 #define BIFE_CONTAINER_H
15 * Base Container Class.
19 class Container: public Widget {
22 typedef std::vector<Widget*> Content;
39 * @param attrs Widget attributes.
41 Container(const Hash&);
46 * @param attrs Widget attributes.
47 * @param content Content of the widget.
49 Container(const Hash&, Widget*);
54 * @param content Content of the widget.
55 * @param attrs Widget attributes.
57 Container(Widget*, const Hash&);
62 virtual ~Container(void);
65 * Renders the widget using a HIT template.
67 * @param hit HIT template to use to render de widget.
68 * @return Rendered widget.
70 virtual string renderContent(HIT&);
73 * Appends a widget to the container.
75 * @param widget Widget to append.
77 virtual void append(Widget*);