28#ifndef INCLUDED_CDROPDOWN
29#define INCLUDED_CDROPDOWN
#define GUI_OBJECT(obj)
Definition: IGUIObject.h:50
Definition: Canvas2D.h:36
Drop Down.
Definition: CDropDown.h:48
bool m_Open
Definition: CDropDown.h:103
CGUISimpleSetting< CStrW > m_SoundLeave
Definition: CDropDown.h:132
CGUISimpleSetting< CStrW > m_SoundEnter
Definition: CDropDown.h:131
CGUISimpleSetting< float > m_DropDownSize
Definition: CDropDown.h:127
CGUISimpleSetting< CGUISpriteInstance > m_Sprite2Disabled
Definition: CDropDown.h:141
virtual void SetupListRect()
Definition: CDropDown.cpp:354
CGUISimpleSetting< CStrW > m_SoundOpened
Definition: CDropDown.h:133
CGUISimpleSetting< CGUISpriteInstance > m_Sprite2Pressed
Definition: CDropDown.h:140
CGUISimpleSetting< CGUISpriteInstance > m_SpriteOverlayDisabled
Definition: CDropDown.h:135
std::string m_InputBuffer
Definition: CDropDown.h:120
CGUISimpleSetting< CGUISpriteInstance > m_Sprite2Over
Definition: CDropDown.h:139
virtual CRect GetListRect() const
Definition: CDropDown.cpp:409
virtual bool IsMouseOver() const
This function checks if the mouse is hovering the rectangle that the base setting "size" makes.
Definition: CDropDown.cpp:414
double m_TimeOfLastInput
Definition: CDropDown.h:123
virtual InReaction ManuallyHandleKeys(const SDL_Event_ *ev)
Handle events manually to catch keyboard inputting.
Definition: CDropDown.cpp:262
int m_ElementHighlight
Definition: CDropDown.h:116
CGUISimpleSetting< CGUIColor > m_TextColorDisabled
Definition: CDropDown.h:142
CGUISimpleSetting< CStrW > m_SoundClosed
Definition: CDropDown.h:130
virtual void Draw(CCanvas2D &canvas)
Draws the Button.
Definition: CDropDown.cpp:426
void SetupText()
Sets up text, should be called every time changes has been made that can change the visual.
Definition: CDropDown.cpp:64
CGUISimpleSetting< CGUISpriteInstance > m_Sprite2
Definition: CDropDown.h:138
CGUISimpleSetting< float > m_DropDownBuffer
Definition: CDropDown.h:128
CGUISimpleSetting< CGUISpriteInstance > m_SpriteDisabled
Definition: CDropDown.h:134
CVector2D m_TextPos
Placement of text.
Definition: CDropDown.h:100
CGUISimpleSetting< float > m_ButtonWidth
Definition: CDropDown.h:126
virtual float GetBufferedZ() const
Returns not the Z value, but the actual buffered Z value, i.e.
Definition: CDropDown.cpp:483
virtual ~CDropDown()
Definition: CDropDown.cpp:60
virtual void HandleMessage(SGUIMessage &Message)
Definition: CDropDown.cpp:76
CGUISimpleSetting< CGUISpriteInstance > m_SpriteListOverlay
Definition: CDropDown.h:137
virtual void UpdateCachedSize()
If the size changed, the texts have to be updated as the word wrapping depends on the size.
Definition: CDropDown.cpp:70
CGUISimpleSetting< u32 > m_MinimumVisibleItems
Definition: CDropDown.h:129
CRect m_CachedListRect
Definition: CDropDown.h:107
CDropDown(CGUI &pGUI)
Definition: CDropDown.cpp:30
CGUISimpleSetting< CGUISpriteInstance > m_SpriteList
Definition: CDropDown.h:136
bool m_HideScrollBar
Definition: CDropDown.h:110
The main object that represents a whole GUI page.
Definition: CGUI.h:61
Create a list of elements, where one can be selected by the user.
Definition: CList.h:39
Rectangle class used for screen rectangles.
Definition: Rect.h:31
Definition: Vector2D.h:32
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:68