AWind
WindowsManager< T > Class Template Reference

Main window manager. Implement core funcctionality of AWind library. It is tempate class that has to be parametrized with main window class. More...

#include <WindowsManager.h>

Inheritance diagram for WindowsManager< T >:
ILoopProcess

Public Member Functions

 WindowsManager (UTFT *lcd, UTouch *touch=NULL)
 Constructor. More...
 
void Initialize ()
 Initialization procedure. Has to be call once.
 
WindowHitTest (int x, int y)
 Returns topmost window that lais under x,y screen coordinate.
 
WindowHitTest (Window *window, int x, int y)
 For defined window return topmost child window that lais under x,y screen coordinate.
 
void loop ()
 Main loop where drawing code only for "dirty" window is called.
 
T * MainWnd ()
 
DCGetDC ()
 Returns device context (interface class to UTFT library)
 
void Idle ()
 If nothing happens, the touch event is checked.
 

Protected Member Functions

void redraw (Window *window, bool isForceRedraw)
 Internal draw code.
 
void loopTouch ()
 Checks touch event.
 

Detailed Description

template<class T = MainWindow>
class WindowsManager< T >

Main window manager. Implement core funcctionality of AWind library. It is tempate class that has to be parametrized with main window class.

Constructor & Destructor Documentation

template<class T = MainWindow>
WindowsManager< T >::WindowsManager ( UTFT *  lcd,
UTouch *  touch = NULL 
)
inline

Constructor.

Parameters
lcdpointer to UTFT object (see UTFT library)
touchpointer to UTouch object (see UTouch library)

The documentation for this class was generated from the following file: