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:
- 16:e9a771ecfdbe
- Parent:
- 13:6714534e7974
- Child:
- 18:d849f3ada858
--- a/Widgets/Widget.h Sat May 21 18:02:20 2016 +0000 +++ b/Widgets/Widget.h Sun May 22 14:40:29 2016 +0000 @@ -20,6 +20,7 @@ Widget(GraphicsContext* context); virtual void setParent(Widget* parent); + virtual Widget *getParent(); /******************************************************** * Methods relating to containment @@ -50,8 +51,8 @@ virtual void setForeground(uint16_t color); virtual void setBackground(uint16_t color); - void setPadding(int pixels); - void setBorder(int width, uint16_t colour); + virtual void setPadding(int pixels); + virtual void setBorder(int width, uint16_t colour); /** * Cause the widget to redraw itself if is is dirty or damaged