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.
Dependencies: MaximInterface
WindowManager Class Reference
Stack based window manager. More...
#include <WindowManager.hpp>
| Public Member Functions | |
| WindowManager (Bitmap &canvas) | |
| void | push (std::auto_ptr< Window > &window) | 
| Push a window onto the top of the stack. | |
| void | pop () | 
| Pop a window from the top of the stack. | |
| bool | update () | 
| Updates all windows and redraws the top window if invalid. | |
| void | processKey (Key key) | 
| Forwards a key-press input event to the top window for processing. | |
Detailed Description
Stack based window manager.
Definition at line 44 of file WindowManager.hpp.
Constructor & Destructor Documentation
| WindowManager | ( | Bitmap & | canvas ) | 
- Parameters:
- 
  canvas Canvas to use for rendering. 
Definition at line 47 of file WindowManager.hpp.
Member Function Documentation
| void pop | ( | ) | 
Pop a window from the top of the stack.
The operation will be queued until the next update. The popped window will be deleted.
Definition at line 64 of file WindowManager.cpp.
| void processKey | ( | Key | key ) | 
Forwards a key-press input event to the top window for processing.
Definition at line 99 of file WindowManager.cpp.
| void push | ( | std::auto_ptr< Window > & | window ) | 
Push a window onto the top of the stack.
The operation will be queued until the next update.
- Parameters:
- 
  window Heap allocated object that WindowManager will take ownership of. 
Definition at line 55 of file WindowManager.cpp.
| bool update | ( | ) | 
Updates all windows and redraws the top window if invalid.
- Returns:
- True if the canvas has been updated.
Definition at line 66 of file WindowManager.cpp.
Generated on Tue Jul 12 2022 12:06:51 by
 1.7.2
 1.7.2