#include <GUI.h>
Inheritance diagram for CGUI:
Public Member Functions | |
CGUI () | |
virtual void | Initialize () |
virtual bool | PropertyChanging (const void *pvProperty, void *pvNewValue) |
virtual void | GetProperties (EPropList &PropList) |
void | SelectInvisible (bool bShow) |
bool | IsInvisibleSelectable () |
virtual int | OnLMouseDown (UINT x, UINT y) |
virtual int | OnLMouseUp (UINT x, UINT y) |
virtual int | Create () |
virtual void | Update () |
virtual void | Draw () |
void | SetActiveElement (CGUIElement *pElement) |
CGUIElement * | GetActiveElement () |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | PostMessage (CGUIElement *pSender, CGUIElement *pReceiver, eGUIMessage eMessage, DWORD lParam=0, DWORD wParam=0, UINT uiTimeoutMs=0) |
virtual void | ProcessMessages () |
virtual void | ProcessMessage (tGUIMessage &Message) |
tGUIMessage * | GetMessage (UINT uiMessageIndex) |
UINT | GetMessageCount () |
bool | IsLocked () |
void | Lock () |
void | Unlock () |
virtual void | Destroy () |
virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
CGUIEventHandler | m_EventHandler |
CGUIElement * | m_pActiveElement |
bool | m_bMouseLock |
bool | m_bSelectInvisible |
This class represents ROOT GUI Element that contains all of the controls. It handles basic commands, options & tuning and other various tasks.
Definition at line 638 of file GUI.h.
|
Destructor Definition at line 4 of file GUI.cpp. References Initialize(), and CEntity::SetEntityType(). |
|
Method details:
|
|
Method details: Destroys the GUI (Pre-destructor) Reimplemented from CGUIElement. Definition at line 135 of file GUI.cpp. References CGUIElement::Destroy(), and m_EventHandler. |
|
Method details: Draws the GUI Reimplemented from CGUIElement. Definition at line 110 of file GUI.cpp. References CGUIElement::Draw(). |
|
Method details:
References m_pActiveElement. Referenced by CGUIButton::OnLMouseUp(), and CGUIElement::OnMouseMove(). |
|
Method details:
References CGUIEventHandler::GetMessage(), and m_EventHandler. Referenced by CGUIElement::ProcessMessages(). |
|
Method details:
References m_EventHandler. Referenced by CGUIElement::ProcessMessages(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 179 of file GUI.cpp. References CGUIElement::GetProperties(), and m_bSelectInvisible. |
|
Method details: Initializes GUI' variables Reimplemented from CGUIElement. Definition at line 15 of file GUI.cpp. References m_bSelectInvisible, m_pActiveElement, CGUIElement::SetType(), and Unlock(). Referenced by CGUI(). |
|
Method details:
References m_bSelectInvisible. Referenced by ProcessMessage(). |
|
Method details:
References m_bMouseLock. Referenced by CGUIElement::OnMouseMove(), and Update(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIElement. Definition at line 216 of file GUI.cpp. References CGUIElement::IsOfType(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 38 of file GUI.cpp. References CGUIElement::LoadXML(). |
|
Method details: Locks the mouse inputDefinition at line 776 of file GUI.h. References m_bMouseLock. Referenced by CGUIElement::OnLMouseDown(), and OnLMouseDown(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 197 of file GUI.cpp. References Lock(), and CGUIElement::OnLMouseDown(). Referenced by Update(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 206 of file GUI.cpp. References CGUIElement::OnLMouseUp(), and SetActiveElement(). Referenced by Update(). |
|
Method details:
References m_EventHandler, and CGUIEventHandler::PostMessage(). Referenced by CGUIElement::OnLMouseUp(), CGUIButton::OnLMouseUp(), CGUIElement::OnMove(), CGUIElement::Resize(), and CGUIScrollBar::SetCurPos(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 141 of file GUI.cpp. References IsInvisibleSelectable(), tGUIMessage::pSender, SetActiveElement(), and CGUIElement::Visible(). Referenced by ProcessMessages(). |
|
Method details: Processes messages from the GUI Event Handler Reimplemented from CGUIElement. Definition at line 157 of file GUI.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIEventHandler::GetMessage(), m_EventHandler, CDoubleList< CGUIElement * >::next(), ProcessMessage(), CGUIElement::ProcessMessages(), and CDoubleList< CGUIElement * >::set_ptr(). Referenced by Update(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 172 of file GUI.cpp. References CGUIElement::PropertyChanging(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 52 of file GUI.cpp. References TiXmlNode::InsertEndChild(), TiXmlDocument::SaveFile(), CGUIElement::SaveXML(), and TiXmlNode::ToElement(). |
|
Method details:
References m_bSelectInvisible. |
|
Method details:
References m_pActiveElement. Referenced by CGUIElement::OnLMouseDown(), OnLMouseUp(), and ProcessMessage(). |
|
Method details: Unlocks the mouse inputDefinition at line 781 of file GUI.h. References m_bMouseLock. Referenced by Initialize(), and Update(). |
|
Method details: Internal updates for GUIDefinition at line 84 of file GUI.cpp. References CGUIEventHandler::Flush(), CMouse::GetCursorPos(), CInputEngine::GetMouse(), CMouse::GetPrevCursorPos(), CSingleton< CInputEngine >::GetSingleton(), CMouse::IsButtonDown(), CMouse::IsButtonUp(), IsLocked(), m_EventHandler, OnLMouseDown(), OnLMouseUp(), CGUIElement::OnMouseMove(), ProcessMessages(), Unlock(), tVERTEX2d::x, and tVERTEX2d::y. |
|
Is mouse locked? Definition at line 798 of file GUI.h. Referenced by IsLocked(), Lock(), and Unlock(). |
|
Should we select invisible widgets? Definition at line 799 of file GUI.h. Referenced by GetProperties(), Initialize(), IsInvisibleSelectable(), and SelectInvisible(). |
|
Root GUI Event Handler Definition at line 796 of file GUI.h. Referenced by Destroy(), GetMessage(), GetMessageCount(), PostMessage(), ProcessMessages(), and Update(). |
|
Current active element Definition at line 797 of file GUI.h. Referenced by GetActiveElement(), Initialize(), and SetActiveElement(). |