#include <GUI.h>
Inheritance diagram for CGUIDropList:
Public Member Functions | |
virtual void | Initialize () |
virtual int | Create (CGUIElement *pParent, tRect WidgetRect, CCustomFont *pFont=NULL, CTexture *pTexture=NULL, CMaterial *pMaterial=NULL, bool bBorder=false, CGUIButton *pDefaultEntryBtn=NULL) |
virtual bool | PropertyChanging (const void *pvProperty, void *pvNewValue) |
virtual void | GetProperties (EPropList &PropList) |
virtual void | Draw () |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | Resize (tRect &NewRect) |
virtual void | ProcessMessage (tGUIMessage &Message) |
virtual void | Expand () |
virtual void | Collapse () |
virtual void | SetCurSel (int iSelection) |
int | GetCurSel () |
virtual CGUIElement * | InsertItem (CString &strItemText, UINT uiInsertAfter=0) |
virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
int | m_iSpacing |
int | m_iListType |
bool | m_bExpanded |
bool | m_bIdentSize |
int | m_iCurSel |
This control represents a simple drop list. It is a derivative of CGUIButton, thus it can be clicked upon to expand the list. NOTE: All of its entries MUST be CGUIButton (or CGUIButton-derived) widgets.
Definition at line 1548 of file GUI.h.
|
Method details: Collapses the drop listDefinition at line 67 of file GUIDropList.cpp. References CGUIElement::GetChild(), CGUIElement::GetChildCount(), CGUIElement::GetType(), and m_bExpanded. Referenced by LoadXML(), ProcessMessage(), and PropertyChanging(). |
|
Method details:
References CGUIButton::Create(), CGUIElement::GetChild(), CGUIElement::IsChild(), CDoubleList< CGUIElement * >::push_back(), CGUIElement::RemoveChild(), Resize(), and CGUIElement::SetParent(). |
|
Method details: Draws the widget Reimplemented from CGUIButton. Definition at line 84 of file GUIDropList.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIElement::Draw(), CGUIElement::GetChild(), CDoubleList< CGUIElement * >::next(), CGUIElement::RemoveChild(), and CDoubleList< CGUIElement * >::set_ptr(). |
|
Method details: Expands the drop listDefinition at line 51 of file GUIDropList.cpp. References CGUIElement::GetChild(), CGUIElement::GetChildCount(), CGUIElement::GetType(), and m_bExpanded. Referenced by LoadXML(), and ProcessMessage(). |
|
Method details:
References m_iCurSel. |
|
Method details:
Reimplemented from CGUIButton. Definition at line 458 of file GUIDropList.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIButton::GetProperties(), CGUIElement::GetType(), m_iCurSel, m_iListType, m_iSpacing, CDoubleList< CGUIElement * >::next(), and CDoubleList< CGUIElement * >::set_ptr(). |
|
Method details: Initializes GUI DropList' variables Reimplemented from CGUIButton. Definition at line 20 of file GUIDropList.cpp. References m_bExpanded, m_bIdentSize, m_iCurSel, m_iListType, m_iSpacing, and CGUIElement::SetType(). |
|
Method details:
References CGUIButton::Create(), CGUIElement::GetRect(), CGUIButton::LoadXML(), CDoubleList< CGUIElement * >::push_back(), Resize(), and CGUIStatic::SetText(). Referenced by PropertyChanging(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIButton. Definition at line 417 of file GUIDropList.cpp. References CGUIButton::IsOfType(). |
|
Method details:
Reimplemented from CGUIButton. Definition at line 100 of file GUIDropList.cpp. References TiXmlElement::Attribute(), CDoubleList< CGUIElement * >::begin(), Collapse(), Expand(), CGUIElement::GetChild(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), CGUIElement::GetType(), CGUIButton::LoadXML(), m_bExpanded, m_iListType, CDoubleList< CGUIElement * >::next(), CGUIElement::RemoveChild(), CDoubleList< CGUIElement * >::set_ptr(), SetCurSel(), and CLogger::Write(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 308 of file GUIDropList.cpp. References Collapse(), Expand(), CGUIElement::GetChild(), CGUIElement::GetChildCount(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::IsChild(), m_bExpanded, tGUIMessage::pSender, Resize(), and SetCurSel(). |
|
Method details:
Reimplemented from CGUIButton. Definition at line 425 of file GUIDropList.cpp. References Collapse(), CGUIElement::GetRect(), InsertItem(), m_iCurSel, m_iListType, CGUIButton::PropertyChanging(), Resize(), and SetCurSel(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 197 of file GUIDropList.cpp. References CGUIElement::GetChild(), CGUIElement::GetChildCount(), CBitmapFont::GetQuadHeight(), CBitmapFont::GetQuadLength(), CGUIElement::GetRect(), CBitmapFont::GetSpacing(), CGUIElement::GetType(), CGUIElement::GetWidth(), m_bIdentSize, m_iListType, m_iSpacing, CGUIElement::Resize(), and CGUIElement::SetRect(). Referenced by Create(), InsertItem(), ProcessMessage(), and PropertyChanging(). |
|
Method details:
Reimplemented from CGUIButton. Definition at line 164 of file GUIDropList.cpp. References TiXmlNode::InsertEndChild(), m_bExpanded, m_iCurSel, m_iListType, TiXmlDocument::SaveFile(), CGUIButton::SaveXML(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). |
|
Method details:
References CDoubleList< CGUIElement * >::begin(), CGUIStatic::GetText(), CGUIElement::GetType(), m_iCurSel, CDoubleList< CGUIElement * >::next(), CDoubleList< CGUIElement * >::set_ptr(), and CGUIStatic::SetText(). Referenced by LoadXML(), ProcessMessage(), and PropertyChanging(). |
|
Indicates when list is expanded Definition at line 1655 of file GUI.h. Referenced by Collapse(), Expand(), Initialize(), LoadXML(), ProcessMessage(), and SaveXML(). |
|
All entries are of the same size? Definition at line 1655 of file GUI.h. Referenced by Initialize(), and Resize(). |
|
Currently selected item (-1 for none) Definition at line 1657 of file GUI.h. Referenced by GetCurSel(), GetProperties(), Initialize(), PropertyChanging(), SaveXML(), and SetCurSel(). |
|
List types: Referenced by GetProperties(), Initialize(), LoadXML(), PropertyChanging(), Resize(), and SaveXML(). |
|
Spacing between items (and drop list) Definition at line 1650 of file GUI.h. Referenced by GetProperties(), Initialize(), and Resize(). |