Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

Revision:
7:303850a4b30c
Parent:
4:27546fb8b670
Child:
8:a460cabc85ac
--- a/Widgets/BitmapWidget.cpp	Mon Mar 28 12:59:37 2016 +0000
+++ b/Widgets/BitmapWidget.cpp	Sun Apr 10 16:48:44 2016 +0000
@@ -1,6 +1,6 @@
 #include "BitmapWidget.h"
 
-BitmapWidget::BitmapWidget(GraphicsDisplay* display) : Widget(display), _monochrome(false)
+BitmapWidget::BitmapWidget(GraphicsDisplay& display) : Widget(display), _monochrome(false)
 {
 }
 
@@ -24,8 +24,8 @@
 {
 
     if(_monochrome) {
-        _display->Bitmap_FG_BG(_x, _y, _width, _height, _bitmap);
+        _display.Bitmap_FG_BG(_x, _y, _width, _height, _bitmap);
     } else {
-        _display->Bitmap(_x, _y, _width, _height, _bitmap);
+        _display.Bitmap(_x, _y, _width, _height, _bitmap);
     }
 }
\ No newline at end of file