Holds on to Surface and Screen that is given to us by the framework. CYIApp will receive updates to these parameters, will do necessary updates to all the components in the system, and will update CYIAppContext for all components on the system to be able to query from
#include <framework/YiAppContext.h>
Public Member Functions | |
| ~CYIAppContext () | |
| CYISurface * | GetSurface () |
| CYIScreen * | GetScreen () |
| CYIApp * | GetApp () |
| void | SetApp (CYIApp *pApp) |
| void | SetSurface (CYISurface *pSurface) |
| void | SetScreen (CYIScreen *pScreen) |
| bool | IsSurfaceUndefined () const |
Static Public Member Functions | |
| static CYIAppContext * | GetInstance () |
| CYIAppContext::~CYIAppContext | ( | ) |
| CYIApp* CYIAppContext::GetApp | ( | ) |
Returns the application object
|
static |
| CYIScreen* CYIAppContext::GetScreen | ( | ) |
Returns the active screen
| CYISurface* CYIAppContext::GetSurface | ( | ) |
Returns the active surface
| bool CYIAppContext::IsSurfaceUndefined | ( | ) | const |
| void CYIAppContext::SetApp | ( | CYIApp * | pApp | ) |
Set the application object
| void CYIAppContext::SetScreen | ( | CYIScreen * | pScreen | ) |
Updates the platform-specific screen
| void CYIAppContext::SetSurface | ( | CYISurface * | pSurface | ) |
Updates the platform-specific surface