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/Window.cpp
- Revision:
- 17:5184762fda6c
- Parent:
- 15:e69fd74d42e4
- Child:
- 18:d849f3ada858
--- a/Widgets/Window.cpp Sun May 22 14:40:29 2016 +0000
+++ b/Widgets/Window.cpp Sun May 22 16:35:23 2016 +0000
@@ -2,12 +2,14 @@
Window::Window(GraphicsContext* context) : Widget(context)
{
+ setSize(context->display()->width(), context->display()->height());
}
void Window::attach(Widget *widget)
{
_widgets.append(widget);
widget->setParent(this);
+ widget->show();
dirtyAll();
damage();
}
@@ -15,7 +17,7 @@
void Window::detach(Widget *widget)
{
- widget->clear();
+ widget->hide();
_widgets.remove(widget);
widget->setParent(NULL);
dirty();
