Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

Revision:
13:6714534e7974
Parent:
12:63db16fea709
--- a/Core/Rectangle.h	Sun May 08 14:42:08 2016 +0000
+++ b/Core/Rectangle.h	Sat May 21 14:40:09 2016 +0000
@@ -2,6 +2,7 @@
 #define SIMPLEGUI_RECTANGLE_H
 
 #include <algorithm>
+#include "Point.h"
 
 class Rectangle
 {
@@ -35,7 +36,10 @@
         }
         return true;
     }
-
+    
+    bool isLocatedAt(Point *p) {
+        return p->x() == x && p->y() == y;
+    }
 
     int x, y, width, height;
 };