My Project
|
A GUI layer contains four drawable GUIStateElement, which are "normal", "highlight", "pressed", and "disabled". More...
#include <GUIResource.h>
Public Types | |
enum | GUILAYER_TYPE { ONE_ELEMENT, NINE_ELEMENT } |
Public Member Functions | |
void | init () |
GUITextureElement * | AddElement (const GUITextureElement *pElement, const char *name=NULL) |
void | AddElement (const GUIFontElement *pElement, const char *name=NULL) |
void | SetElement (GUITextureElement *pElement, int index=0) |
void | SetElement (GUIFontElement *pElement, int index=0) |
void | Clone (GUILAYER *output) |
string | ToScript (int option=0) |
Public Attributes | |
GUIStateElement | eDisabled |
GUIStateElement | eNormal |
GUIStateElement | ePressed |
GUIStateElement | eHighlight |
GUIStateElement * | eCurrent |
vector< RECT > | DrawingRects |
bool | bIsEnabled |
int | m_objType |
A GUI layer contains four drawable GUIStateElement, which are "normal", "highlight", "pressed", and "disabled".
typically, only one of them is active at a time and used for drawing the GUI layer. "normal" state is the normal appearance. By default, we render a control using this state "highlight" state is the appearance when mouse is over or the control is highlighted. "pressed" state is the appearance when the control is pressed. "disabled" state is the appearance when the control is disabled.