ScummVM API documentation
cMainMenuWidget_List Class Reference
Inheritance diagram for cMainMenuWidget_List:
cMainMenuWidget

Public Member Functions

 cMainMenuWidget_List (cInit *apInit, const cVector3f &avPos, const cVector2f &avSize, cVector2f avFontSize)
 
void OnUpdate (float afTimeStep)
 
void OnMouseOver (bool abOver)
 
void OnDraw ()
 
void OnMouseDown (eMButton aButton)
 
void OnMouseUp (eMButton aButton)
 
void AddEntry (const tWString &asText)
 
const tWString & GetSelectedEntry ()
 
int GetSelectedIndex ()
 
void SetSelectedIndex (int alIdx)
 
- Public Member Functions inherited from cMainMenuWidget
 cMainMenuWidget (cInit *apInit, const cVector3f &avPos, const cVector2f &avSize)
 
virtual void OnUpdate (float afTimeStep)
 
virtual void OnDraw ()
 
virtual void OnMouseDown (eMButton aButton)
 
virtual void OnMouseUp (eMButton aButton)
 
virtual void OnDoubleClick (eMButton aButton)
 
virtual void OnMouseOver (bool abOver)
 
const cRect2f & GetRect ()
 
virtual void Reset ()
 
virtual void OnActivate ()
 
bool IsActive ()
 
void SetActive (bool abX)
 

Protected Attributes

cGraphicsDrawer * mpDrawer
 
FontData * mpFont
 
cGfxObject * mpBackGfx
 
cGfxObject * mpDownGfx
 
cGfxObject * mpUpGfx
 
cGfxObject * mpSlideGfx
 
cGfxObject * mpSlideButtonGfx
 
cGfxObject * mpBorderLeftGfx
 
cGfxObject * mpBorderTopGfx
 
cGfxObject * mpBorderBottomGfx
 
float mfSlideButtonSize
 
float mfSlideButtonPos
 
bool mbSlideButtonPressed
 
float mfSlideButtonMove
 
bool mbOver
 
cVector2f mvFontSize
 
cVector3f mvPosition
 
cVector2f mvSize
 
eFontAlign mAlignment
 
float mfOverTimer
 
int mlMaxRows
 
int mlFirstRow
 
int mlSelected
 
tWStringVec mvEntries
 
cVector2f mvLastMousePos
 
- Protected Attributes inherited from cMainMenuWidget
cInit * mpInit
 
cGraphicsDrawer * mpDrawer
 
cVector3f mvPositon
 
cRect2f mRect
 
float mfAlpha
 
bool mbActive
 

Additional Inherited Members

- Public Attributes inherited from cMainMenuWidget
bool mbOver
 

Member Function Documentation

◆ OnUpdate()

void cMainMenuWidget_List::OnUpdate ( float  afTimeStep)
virtual

Reimplemented from cMainMenuWidget.

◆ OnMouseOver()

void cMainMenuWidget_List::OnMouseOver ( bool  abOver)
virtual

Reimplemented from cMainMenuWidget.

◆ OnDraw()

void cMainMenuWidget_List::OnDraw ( )
virtual

Reimplemented from cMainMenuWidget.

◆ OnMouseDown()

void cMainMenuWidget_List::OnMouseDown ( eMButton  aButton)
virtual

Reimplemented from cMainMenuWidget.

◆ OnMouseUp()

void cMainMenuWidget_List::OnMouseUp ( eMButton  aButton)
virtual

Reimplemented from cMainMenuWidget.


The documentation for this class was generated from the following file: