#include <aws.h>
Inheritance diagram for awsManager:
Public Methods | |
awsManager (iBase *p) | |
virtual | ~awsManager () |
bool | Initialize (iObjectRegistry *sys) |
virtual iAwsPrefManager* | GetPrefMgr () |
Get a pointer to the preference manager. | |
virtual iAwsSinkManager* | GetSinkMgr () |
Get a pointer to the sink manager. | |
virtual void | SetPrefMgr (iAwsPrefManager *pmgr) |
Set the preference manager used by the window system. | |
virtual void | RegisterComponentFactory (awsComponentFactory *factory, char *name) |
Register a component factory. | |
virtual awsComponentFactory* | FindComponentFactory (char *name) |
Find a component factory. | |
virtual iAwsWindow* | GetTopWindow () |
Get the top window. | |
virtual void | SetTopWindow (iAwsWindow *_top) |
Set the top window. | |
virtual bool | WindowIsDirty (iAwsWindow *win) |
Returns true if part of this window is inside the dirty zones. | |
virtual void | Print (iGraphics3D *g3d) |
Causes the current view of the window system to be drawn to the given graphics device. | |
virtual void | Redraw () |
Redraw whatever portions of the screen need it. | |
virtual void | Mark (csRect &rect) |
Mark a section of the screen dirty. | |
virtual void | Unmark (csRect &rect) |
Mark a section of the screen clean. | |
virtual void | InvalidateUpdateStore () |
Tell the system to rebuild the update store. | |
virtual void | CaptureMouse () |
Capture all mouse events until release is called, no matter where the mouse is. | |
virtual void | ReleaseMouse () |
Release the mouse events to go where they normally would. | |
virtual iAwsWindow* | CreateWindowFrom (char *defname) |
Instantiates a window based on a window definition. | |
virtual void | SetContext (iGraphics2D *g2d, iGraphics3D *g3d) |
Set the contexts however you want. | |
virtual void | SetDefaultContext (iEngine *engine, iTextureManager *txtmgr) |
Set the context to the procedural texture. | |
virtual iGraphics2D* | G2D () |
Get the iGraphics2D interface so that components can use it. | |
virtual iGraphics3D* | G3D () |
Get the iGraphics3D interface so that components can use it. | |
virtual bool | HandleEvent (iEvent &) |
Dispatches events to the proper components. | |
Public Attributes | |
SCF_DECLARE_IBASE | |
awsManager::eiComponent | scfiComponent |
awsManager::eiEventHandler | scfiEventHandler |
Protected Methods | |
void | RedrawWindow (iAwsWindow *win, csRect &dirtyarea) |
Redraws a window only if it has areas in the dirtyarea. | |
void | RecursiveDrawChildren (iAwsComponent *cmp, csRect &dirtyarea) |
Redraws all children recursively, but only if they have an part in dirty area. | |
bool | RecursiveBroadcastToChildren (iAwsComponent *cmp, iEvent &event) |
Recursively broadcasts events to children, but only if they deserve it. | |
void | CreateChildrenFromDef (iAws *wmgr, iAwsComponent *parent, awsComponentNode *settings) |
Recursively creates child components and adds them into a parent. Used internally. | |
void | UpdateStore () |
Checks the updatestore_dirty flag and refreshes the store accordingly. | |
void | RegisterCommonComponents () |
Registers all the "known" components. |
It defines a simple, lightweight alternative to the current CSWS windowing system. It supports simple skinning via the .skn defintions, and creation of windows from .win definitions.