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: Widgets/Widget.h
- Revision:
- 5:b7ce5721a0b5
- Parent:
- 1:48796b602c86
- Child:
- 7:303850a4b30c
--- a/Widgets/Widget.h Sun Mar 27 15:37:32 2016 +0000
+++ b/Widgets/Widget.h Mon Mar 28 10:47:39 2016 +0000
@@ -12,7 +12,7 @@
public:
- Widget(GraphicsDisplay* display) : _display(display), _fg(Black), _bg(White) {}
+ Widget(GraphicsDisplay* display) : _display(display), _fg(Black), _bg(White), _x(0), _y(0), _width(0), _height(0) {}
virtual bool isEventTarget(Event e) {
return e.screenX >= _x && e.screenX <= (_x+_width) && e.screenY >= _y && e.screenY <= (_y+_height);
@@ -64,11 +64,10 @@
protected:
+ GraphicsDisplay* _display;
+ uint16_t _fg, _bg;
+ int _x,_y,_width,_height;
bool _hidden;
- GraphicsDisplay* _display;
-
- int _x,_y,_width,_height;
- uint16_t _fg, _bg;
};
