#include <GUI.h>
Inheritance diagram for CGUIMenuEntry:
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) |
virtual bool | PropertyChanging (const void *pvProperty, void *pvNewValue) |
virtual void | GetProperties (EPropList &PropList) |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
int | HExpand () |
int | VExpand () |
void | SetExpand (int iHorizontal, int iVertical) |
virtual void | Expand () |
virtual void | Collapse () |
bool | PointInChildRects () |
virtual CGUIElement * | InsertItem (CString &strItemText, UINT uiInsertAfter=0) |
void | HideSiblingsText (int iDeep=-1) |
void | ShowSiblingsText (int iDeep=-1) |
virtual int | Resize (tRect &NewRect) |
virtual void | ProcessMessage (tGUIMessage &Message) |
virtual void | Destroy () |
virtual void | Draw () |
const CGUIMenuEntry * | GetExpanded () |
virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
int | m_iHExpand |
int | m_iVExpand |
int | m_iCurSel |
CGUIMenuEntry * | m_pExpandedChild |
This control represents an entry for the CGUIMenu class NOTE: All of its entries MUST be CGUIMenuEntry (or CGUIMenuEntry-derived) widgets.
Definition at line 1769 of file GUI.h.
|
Method details: Collapses this menu entry (makes it's children invisible)Definition at line 350 of file GUIMenuEntry.cpp. References CGUIElement::HideSiblings(), and HideSiblingsText(). Referenced by Draw(), and CGUIMenu::ProcessMessage(). |
|
Method details:
Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 24 of file GUIMenuEntry.cpp. References CGUIButton::Create(), CGUIElement::GetChild(), CGUIElement::GetType(), and CGUIElement::RemoveChild(). Referenced by CGUIMenu::Create(), and InsertItem(). |
|
Method details: Destroys the widget - e.g Pre-destructor (resets variables) Reimplemented from CGUIButton. Definition at line 429 of file GUIMenuEntry.cpp. |
|
Method details: Draws the widget Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 254 of file GUIMenuEntry.cpp. References CDoubleList< CGUIElement * >::begin(), Collapse(), CGUIButton::Draw(), Expand(), CGUIElement::GetChildCount(), CMouse::GetCursorPos(), CInputEngine::GetMouse(), CGUIElement::GetRect(), CSingleton< CInputEngine >::GetSingleton(), CGUIElement::GetType(), m_pExpandedChild, CDoubleList< CGUIElement * >::next(), PointInChildRects(), CDoubleList< CGUIElement * >::set_ptr(), tVERTEX2d::x, and tVERTEX2d::y. Referenced by CGUIMenu::Draw(). |
|
Method details: Expands this menu entry (makes it's children visible)Definition at line 248 of file GUIMenuEntry.cpp. References CGUIElement::ShowSiblings(), and ShowSiblingsText(). Referenced by Draw(), and CGUIMenu::ProcessMessage(). |
|
Method details:
References m_pExpandedChild. |
|
Method details:
Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 384 of file GUIMenuEntry.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIButton::GetProperties(), CGUIElement::GetType(), CGUIElement::IsAutoCalc(), m_iCurSel, m_iHExpand, m_iVExpand, CDoubleList< CGUIElement * >::next(), and CDoubleList< CGUIElement * >::set_ptr(). Referenced by CGUIMenu::GetProperties(). |
|
Method details:
References m_iHExpand. Referenced by Resize(). |
|
Method details:
References CDoubleList< CGUIElement * >::begin(), CGUIElement::GetType(), CGUIStatic::HideText(), CDoubleList< CGUIElement * >::next(), and CDoubleList< CGUIElement * >::set_ptr(). Referenced by Collapse(), and LoadXML(). |
|
Method details: Initializes GUI DropList' variables Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 14 of file GUIMenuEntry.cpp. References m_iCurSel, m_iHExpand, m_iVExpand, m_pExpandedChild, and CGUIElement::SetType(). |
|
Method details:
References Create(), CGUIElement::GetParent(), CGUIElement::GetRect(), LoadXML(), CDoubleList< CGUIElement * >::push_front(), Resize(), CGUIElement::Resize(), SetExpand(), CGUIElement::SetFlag(), and CGUIStatic::SetText(). Referenced by PropertyChanging(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 376 of file GUIMenuEntry.cpp. References CGUIButton::IsOfType(). Referenced by CGUIMenu::IsOfType(). |
|
Method details:
Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 76 of file GUIMenuEntry.cpp. References TiXmlElement::Attribute(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), CGUIElement::HideSiblings(), HideSiblingsText(), CGUIButton::LoadXML(), m_iHExpand, m_iVExpand, CGUIElement::SetAutoCalc(), and CLogger::Write(). Referenced by InsertItem(), and CGUIMenu::LoadXML(). |
|
Method details:
References CDoubleList< CGUIElement * >::begin(), CMouse::GetCursorPos(), CInputEngine::GetMouse(), CGUIElement::GetRect(), CSingleton< CInputEngine >::GetSingleton(), CGUIElement::GetType(), CDoubleList< CGUIElement * >::next(), CDoubleList< CGUIElement * >::set_ptr(), CGUIElement::Visible(), tVERTEX2d::x, and tVERTEX2d::y. Referenced by Draw(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUIMenu. Definition at line 361 of file GUIMenuEntry.cpp. References CGUIElement::GetParent(), CGUIElement::GetRect(), tGUIMessage::pSender, and Resize(). |
|
Method details:
Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 218 of file GUIMenuEntry.cpp. References CGUIElement::GetParent(), CGUIElement::GetRect(), InsertItem(), m_iCurSel, m_iHExpand, m_iVExpand, CGUIButton::PropertyChanging(), and CGUIElement::Resize(). Referenced by CGUIMenu::PropertyChanging(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 290 of file GUIMenuEntry.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIElement::GetType(), HExpand(), CGUIElement::IsAutoCalc(), CDoubleList< CGUIElement * >::next(), CGUIStatic::Resize(), CDoubleList< CGUIElement * >::set_ptr(), and VExpand(). Referenced by InsertItem(), CGUIMenu::LoadXML(), ProcessMessage(), and CGUIMenu::ProcessMessage(). |
|
Method details:
Reimplemented from CGUIButton.
Reimplemented in CGUIMenu. Definition at line 136 of file GUIMenuEntry.cpp. References m_iHExpand, m_iVExpand, CGUIButton::SaveXML(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). Referenced by CGUIMenu::SaveXML(). |
|
Method details:
References m_iHExpand, and m_iVExpand. Referenced by InsertItem(). |
|
Method details:
References CDoubleList< CGUIElement * >::begin(), CGUIElement::GetType(), CDoubleList< CGUIElement * >::next(), CDoubleList< CGUIElement * >::set_ptr(), and CGUIStatic::ShowText(). Referenced by Expand(). |
|
Method details:
References m_iVExpand. Referenced by Resize(). |
|
Currently selected child (used to add new sub-entries) Definition at line 1900 of file GUI.h. Referenced by GetProperties(), Initialize(), and PropertyChanging(). |
|
Referenced by GetProperties(), HExpand(), Initialize(), LoadXML(), PropertyChanging(), SaveXML(), and SetExpand(). |
|
Referenced by GetProperties(), Initialize(), LoadXML(), PropertyChanging(), SaveXML(), SetExpand(), and VExpand(). |
|
Pointer to expanded child Definition at line 1901 of file GUI.h. Referenced by Draw(), GetExpanded(), and Initialize(). |