Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
Diff: Core/Rectangle.h
- Revision:
- 13:6714534e7974
- Parent:
- 12:63db16fea709
diff -r 63db16fea709 -r 6714534e7974 Core/Rectangle.h
--- 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;
 };
    