gui
Class CDropDown
IGUIScrollBarOwner, IGUITextOwner
|
+--CList
|
+--CDropDown
in CDropDown.h
in CDropDown.cpp
- class CDropDown
- extends CList
Drop Down
The control can be pressed, but we will not inherent
this behavior from IGUIButtonBehavior, because when
you press this control, the list with elements will
immediately appear, and not first after release
(which is the whole gist of the IGUIButtonBehavior).
| Methods inherited from class CList |
SetupText, HandleMessage, ManuallyHandleEvent, Draw, DrawList, AddItem, HandleAdditionalChildren, SelectNextElement, SelectPrevElement, SelectFirstElement, SelectLastElement, UpdateAutoScroll, ResetStates, GetListRect |
m_CachedListRect
protected CRect m_CachedListRect;
m_ElementHighlight
protected int m_ElementHighlight;
m_HideScrollBar
protected bool m_HideScrollBar;
m_Open
protected bool m_Open;
m_TextPos
protected CPos m_TextPos;
- Placement of text.
CDropDown
public CDropDown();
~CDropDown
public virtual ~CDropDown();
Draw
public virtual void Draw();
- Draws the Button
GetBufferedZ
public virtual float GetBufferedZ() const;
GetListRect
protected virtual CRect GetListRect() const;
HandleMessage
public virtual void HandleMessage( const SGUIMessage& Message );
- Handle Messages
- Parameters:
Message - GUI Message
ManuallyHandleEvent
public virtual InReaction ManuallyHandleEvent( const SDL_Event_* ev );
- Handle events manually to catch keyboard inputting.
MouseOver
public virtual bool MouseOver();
SetupListRect
protected virtual void SetupListRect();
SetupText
protected void SetupText();
- Sets up text, should be called every time changes has been
made that can change the visual.