DeepCover Embedded Security in IoT: Public-key Secured Data Paths

Dependencies:   MaximInterface

Embed: (wiki syntax)

« Back to documentation index

WindowManager Class Reference

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:
canvasCanvas 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:
windowHeap 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.