|
Public Member Functions |
void | Display () |
| Draw all widgets in the Gewi system.
|
ResourceID | AddResource (ZE::ZImage *image) |
| Adds an image resource to the private vector.
|
ResourceID | AddResource (ZE::ZFont *font) |
| Adds a font resource to the private vector.
|
ZE::ZImage * | Image (ResourceID id) |
| Access an image in the resource vector.
|
ZE::ZFont * | Font (ResourceID id) |
| Access a font in the resource vector.
|
void | FreeResources () |
| Free all resources.
|
void | Register (GWidget *widget) |
| Register a widget, adding it to the list of widgets.
|
void | SendMessage (SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch) |
| Send a message to the widgets, this function will decide which widgets the message is relevant to.
|
void | DeleteWidget (GWidget *widget) |
| Delete a widget.
|
Static Public Member Functions |
GewiEngine * | GetInstance () |
| Get the static instance of GewiEngine.
|
void | ReleaseInstance () |
| Release static instance.
|
int | EventFilter (SDL_Event *event) |
| Static event filter, defined to SDL specifications.
|
char | TranslateKey (SDL_keysym key) |
| Translate an SDL structure into a character, used by EventFilter.
|
Static Public Attributes |
VersionInfo | Version |
| Static version information.
|
VersionInfo | MinZEVersion |
| Required ZEngine version.
|
const ResourceID | InvalidID = UINT_MAX |
| Static variable used to represent invalid IDs (before an ID has been assigned all resourceIDs should == InvalidID).
|
Private Member Functions |
| GewiEngine () |
| GewiEngine constructor, private due to singleton design.
|
void | InsertWidget (WidgetNode *node) |
| Inserts a child to the child list.
|
Private Attributes |
std::vector< ZE::ZImage * > | mImageVec |
| Vector of pointers to ZImages, used by resource management system.
|
std::vector< ZE::ZFont * > | mFontVec |
| Vector of pointers to ZFonts, used by resource management system.
|
WidgetList | mWidgetList |
| List of widgets in global context.
|
Static Private Attributes |
GewiEngine * | sInstance = NULL |
| Singleton static instance of GewiEngine.
|