My Project
Public Types | Public Member Functions | Public Attributes | List of all members
ParaEngine::GUILAYER Struct Reference

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 ()
 
GUITextureElementAddElement (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
 
GUIStateElementeCurrent
 
vector< RECTDrawingRects
 
bool bIsEnabled
 
int m_objType
 

Detailed Description

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.


The documentation for this struct was generated from the following files: