Foundation classes for a basic GUI implementing simple widgets and events. (Fork for custom changes.)

Fork of SimpleGUI by Duncan McIntyre

Revision:
8:a460cabc85ac
Parent:
7:303850a4b30c
Child:
9:616a9686d5db
--- a/Widgets/TextWidget.h	Sun Apr 10 16:48:44 2016 +0000
+++ b/Widgets/TextWidget.h	Mon Apr 11 16:54:02 2016 +0000
@@ -8,21 +8,24 @@
     
     public:
     
-        TextWidget(GraphicsDisplay& display, FontRenderer* renderer);
+        TextWidget(GUI* gui);
+        TextWidget(GUI* gui, FontRenderer* renderer);
+        TextWidget(GUI* gui, FontRenderer* renderer, Font* font);
                 
         // Ccncrete methods for this class
         virtual void setFont(Font* font);
-
         virtual void setText(char* text);
     
-        // Implementation to account for whether the event's coordinates intersect this widget
-        virtual void draw();      
     
     protected:
     
+        // Implementation to account for whether the event's coordinates intersect this widget
+        virtual void _draw();      
+        virtual void _clear();      
+
         char *_text;
+        FontRenderer* _renderer;
         Font* _font;
-        FontRenderer* _renderer;
 };
 
 #endif
\ No newline at end of file