5 #define SCROLLBAR_MINTHUMBSIZE 8 30 virtual HRESULT Render(
GUIState* pGUIState,
float fElapsedTime);
31 virtual void UpdateRects();
32 virtual void InitObject(
const char * strObjectName,
const char * alignment,
int x,
int y,
int width,
int height);
33 virtual bool OnMouseLeave();
34 virtual bool OnChange(
const char*
code = NULL);
87 void SetStep(
int nDelta){ m_nDelta = nDelta; }
104 void SetFixedThumb(
bool bFixed);
105 bool GetFixedThumb()
const{
return m_bFixedThumb; }
107 void SetThumbSize(
int size){ m_nThumbSize = SCROLLBAR_MINTHUMBSIZE > size ? SCROLLBAR_MINTHUMBSIZE : size; m_bNeedUpdate =
true; }
108 int GetThumbSize()
const {
return m_nThumbSize; }
110 void SetLinkedObject(
CGUIBase* obj){ m_Linked = obj; }
112 void SetScrollbarWidth(
int width);
113 int GetScrollbarWidth()
const;
118 static void StaticInit();
121 virtual const IType* GetType()
const{
return m_type; }
124 static const IType* m_type;
131 enum ARROWSTATE { CLEAR, CLICKED_UP, CLICKED_DOWN, HELD_UP, HELD_DOWN, CLICKED, HELD };
IType is for type information and validating It contains type information of an object.
Definition: Type.h:75
Definition: EventBinding.h:22
different physics engine has different winding order.
Definition: EventBinding.h:32
base object for all 2D GUI objects (1) 2D GUI object are not tested against view frustum, instead it is controlled by visibility tag automatically or through user input.
Definition: GUIBase.h:54
base class for object, such as CBaseObject, IAttributeObject, GUI object.
Definition: PERef.h:287
It's used as parameter to Render method of each GUI object.
Definition: GUIState.h:16
Definition: inftrees.h:24