My Project
|
A drawable element containing several textures and fonts, which can be retrieved by name or index. More...
#include <GUIResource.h>
Public Member Functions | |
size_t | TextureSize () |
size_t | FontSize () |
GUIFontElement * | AddElement (const GUIFontElement *pElement, const char *name=NULL) |
Currently, if you add elements using the same several times, the old ones will not be deleted. More... | |
GUITextureElement * | AddElement (const GUITextureElement *pElement, const char *name=NULL) |
GUITextureElement * | SetElement (const GUITextureElement *pElement, int nIndex) |
create or replace an element at the given index. More... | |
GUIFontElement * | SetElement (const GUIFontElement *pElement, int nIndex) |
create or replace an element at the given index. More... | |
GUIFontElement * | GetFontElement (const string &name) |
GUIFontElement * | GetFontElement (int index) |
GUITextureElement * | GetTextureElement (const string &name) |
GUITextureElement * | GetTextureElement (int index) |
void | init () |
void | Clone (GUIStateElement *output) |
Public Attributes | |
map< string, DWORD > | fontmap |
map< string, DWORD > | texturemap |
A drawable element containing several textures and fonts, which can be retrieved by name or index.
typically an element may contain one texture for traditional button, or 9 textures for re-sizable controls
GUIFontElement * ParaEngine::GUIStateElement::AddElement | ( | const GUIFontElement * | pElement, |
const char * | name = NULL |
||
) |
Currently, if you add elements using the same several times, the old ones will not be deleted.
If you want to get the element with that name, you get the last added one.
GUITextureElement * ParaEngine::GUIStateElement::SetElement | ( | const GUITextureElement * | pElement, |
int | nIndex | ||
) |
create or replace an element at the given index.
it is a better to call this with increasing nIndex
GUIFontElement * ParaEngine::GUIStateElement::SetElement | ( | const GUIFontElement * | pElement, |
int | nIndex | ||
) |
create or replace an element at the given index.
it is a better to call this with increasing nIndex