1 // vim: set expandtab tabstop=4 shiftwidth=4:
22 /// Widget constructor function prototype.
23 typedef Widget* Constructor(const string&, const Hash&);
24 /// Widget destructor function prototype.
25 typedef void Destructor(Widget*);
29 /// Widget attributes.
42 * @param attrs Widget attributes.
49 virtual ~Widget(void);
52 * Renders the widget using a HIT template.
54 * @param hit HIT template to use to render de widget.
55 * @return Rendered widget.
57 virtual string render(HIT&) = 0;
60 * Renders the widget using a HIT template.
62 * @param hit HIT template to use to render de widget.
63 * @return Rendered widget.
65 virtual operator string(void) const;