1 // vim: set expandtab tabstop=4 shiftwidth=4:
4 #include "../libbife/fallback.h"
5 #include "../libbife/widget.h"
6 #include "../libbife/hash.h"
10 using bife::Translate;
19 * @param name Name of the widget to construct.
20 * @param attrs Widget's attributes.
21 * @return A new Widget.
24 Widget* bife_widget_constructor(const string& name, const Hash& attrs) {
26 std::transform(cn.begin(), cn.end(), cn.begin(), std::tolower);
27 if (cn == "translate") {
28 return new Translate(attrs);
37 * @param w The widget to destroy.
40 void bife_widget_destructor(Widget* w) {