]> git.llucax.com Git - software/bife/bife++.git/blobdiff - parser.h
Added a string substr test.
[software/bife/bife++.git] / parser.h
index f79264664294f9c5ac08ee114f55da2d0dbd89e9..3476d87a34753eb14c05b1f937353b226fd06e4c 100644 (file)
--- a/parser.h
+++ b/parser.h
 #include <string>
 #include <stack>
 
+// 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;
@@ -30,6 +34,9 @@ namespace bife {
             WidgetStack stack;
 
             // TODO Fallback.
+            create_t* fb_create;
+            destroy_t* fb_destroy;
+
         public:
             /// Widget attributes.
             Widget* root;