Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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).


Field Summary
protected CRect m_CachedListRect
          
protected int m_ElementHighlight
          
protected bool m_HideScrollBar
          
protected bool m_Open
          
protected CPos m_TextPos
          Placement of text.
   
Fields inherited from class CList
m_ItemsYPositions
 
Constructor Summary
CDropDown()
          
virtual ~CDropDown()
          
 
Method Summary
 virtual void Draw()
          Draws the Button
 virtual float GetBufferedZ() const
          
protected virtual CRect GetListRect() const
          
 virtual void HandleMessage( const SGUIMessage& Message )
          Handle Messages
 virtual InReaction ManuallyHandleEvent( const SDL_Event_* ev )
          Handle events manually to catch keyboard inputting.
 virtual bool MouseOver()
          
protected virtual void SetupListRect()
          
protected void SetupText()
          Sets up text, should be called every time changes has been made that can change the visual.
   
Methods inherited from class CList
SetupText, HandleMessage, ManuallyHandleEvent, Draw, DrawList, AddItem, HandleAdditionalChildren, SelectNextElement, SelectPrevElement, SelectFirstElement, SelectLastElement, UpdateAutoScroll, ResetStates, GetListRect
   
Methods inherited from IGUIScrollBarOwner
ResetStates, AddScrollBar, GetScrollBarStyle, HandleMessage, Draw
   
Methods inherited from IGUITextOwner
AddText, HandleMessage, Draw, CalculateTextPosition
 

Field Detail

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.


Constructor Detail

CDropDown

public CDropDown();

~CDropDown

public virtual ~CDropDown();


Method Detail

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.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD