Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

Revision:
12:63db16fea709
Parent:
9:616a9686d5db
Child:
14:e6515b19f5a0
--- a/Widgets/BitmapWidget.h	Fri Apr 22 16:12:42 2016 +0000
+++ b/Widgets/BitmapWidget.h	Sun May 08 14:42:08 2016 +0000
@@ -7,21 +7,20 @@
     
     public:
     
-        BitmapWidget(GUI* gui);
-        BitmapWidget(GUI* gui, bool monochrome);
+        BitmapWidget(GraphicsContext *context);
+        BitmapWidget(GraphicsContext *context, bool monochrome);
                 
         // Ccncrete methods for this class
-        void setBitmap(unsigned char* bitmap);
+        void setBitmap(unsigned char* bitmap, int width, int height);
         
         // Set to draw the bitmap in monochrome
         void setMonochrome(bool enabled);
         bool isMonochrome();
     
     protected:
-        // Implementation to account for whether the event's coordinates intersect this widget
+
         virtual void _draw();      
-        virtual void _clear();      
-    
+            
         unsigned char* _bitmap;
         bool _monochrome;
 };