1 // vim: set expandtab tabstop=4 shiftwidth=4:
3 #ifndef BIFE_CONTAINER_H
4 #define BIFE_CONTAINER_H
17 * Base Container Class.
21 class Container: public Widget {
24 typedef std::vector<Widget*> Content;
41 * @param attrs Widget attributes.
43 Container(const Hash&);
48 * @param attrs Widget attributes.
49 * @param content Content of the widget.
51 Container(const Hash&, Widget*);
56 * @param content Content of the widget.
57 * @param attrs Widget attributes.
59 Container(Widget*, const Hash&);
64 virtual ~Container(void);
67 * Renders the widget using a HIT template.
69 * @param hit HIT template to use to render de widget.
70 * @return Rendered widget.
72 virtual string renderContent(HIT&);
75 * Appends a widget to the container.
77 * @param widget Widget to append.
79 virtual void append(Widget*);