X-Git-Url: https://git.llucax.com/software/bife/bife%20%20.git/blobdiff_plain/efa6c9315719fc0b98483abdc26341d061b4a4b4..62eb4c434ac30aa83ef05be78130cb42105f618c:/parser.h/software/bife/bife++.git/blobdiff_plain/efa6c9315719fc0b98483abdc26341d061b4a4b4..62eb4c434ac30aa83ef05be78130cb42105f618c:/parser.h?ds=sidebyside diff --git a/parser.h b/parser.h index 4eb8e79..3476d87 100644 --- a/parser.h +++ b/parser.h @@ -10,6 +10,10 @@ #include #include +// FIXME - Poner esto en un lugar más bonito. +typedef bife::Widget* create_t(const std::string& name, const bife::Hash&); +typedef void destroy_t(bife::Widget*); + namespace bife { using std::string; @@ -25,14 +29,17 @@ namespace bife { typedef std::stack WidgetStack; // Attributes. - public: - /// Widget attributes. - Widget* root; - + protected: /// Stack TODO. WidgetStack stack; // TODO Fallback. + create_t* fb_create; + destroy_t* fb_destroy; + + public: + /// Widget attributes. + Widget* root; // Methods. protected: