|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IGUIScrollBarOwner, IGUITextOwner | +--CListin CList.h
Create a list of elements, where one can be selected by the user. The control will use a pre-processed text-object for each element, which will be managed by the IGUITextOwner structure. A scroll-bar will appear when needed. This will be achieve with the IGUIScrollBarOwner structure.
Field Summary | |
protected std::vector< float > |
m_ItemsYPositions
List of each element's relative y position. |
Constructor Summary | |
CList()
|
|
virtual ~CList()
|
Method Summary | |
virtual void |
AddItem( const CStr& str )
Adds an item last to the list. |
protected virtual void |
Draw()
Draws the List box |
protected void |
DrawList( const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor )
|
protected virtual CRect |
GetListRect() const
|
protected virtual bool |
HandleAdditionalChildren( const XMBElement& child, CXeromyces* pFile )
Handle the |
protected virtual void |
HandleMessage( const SGUIMessage& Message )
Handle Messages |
protected virtual InReaction |
ManuallyHandleEvent( const SDL_Event_* ev )
Handle events manually to catch keyboard inputting. |
virtual void |
ResetStates()
|
protected virtual void |
SelectFirstElement()
|
protected virtual void |
SelectLastElement()
|
protected virtual void |
SelectNextElement()
Easy select elements functions |
protected virtual void |
SelectPrevElement()
|
protected void |
SetupText()
Sets up text, should be called every time changes has been made that can change the visual. |
protected void |
UpdateAutoScroll()
|
Methods inherited from IGUIScrollBarOwner |
ResetStates, AddScrollBar, GetScrollBarStyle, HandleMessage, Draw |
Methods inherited from IGUITextOwner |
AddText, HandleMessage, Draw, CalculateTextPosition |
Field Detail |
protected std::vector< float > m_ItemsYPositions;
Constructor Detail |
public CList();
public virtual ~CList();
Method Detail |
public virtual void AddItem( const CStr& str );
protected virtual void Draw();
protected void DrawList( const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor );
protected virtual CRect GetListRect() const;
protected virtual bool HandleAdditionalChildren( const XMBElement& child, CXeromyces* pFile );
protected virtual void HandleMessage( const SGUIMessage& Message );
Message
- GUI Messageprotected virtual InReaction ManuallyHandleEvent( const SDL_Event_* ev );
public virtual void ResetStates();
protected virtual void SelectFirstElement();
protected virtual void SelectLastElement();
protected virtual void SelectNextElement();
protected virtual void SelectPrevElement();
protected void SetupText();
protected void UpdateAutoScroll();
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |