#include <GUI.h>
Inheritance diagram for CGUIWindow:
Public Member Functions | |
virtual void | Initialize () |
virtual int | Create (CGUIElement *pParent, tRect WidgetRect, CGUIStatic *pStatusBar=NULL, CGUIStatic *pTitleBar=NULL, CGUIButton *pCloseButton=NULL, CGUIButton *pMinButton=NULL, CGUIButton *pMaxRestoreButton=NULL, CTexture *pTexture=NULL, CMaterial *pMaterial=NULL, bool bBorder=false) |
virtual void | ProcessMessage (tGUIMessage &Message) |
virtual void | Draw () |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | Resize (tRect &NewRect) |
void | Minimize () |
void | Restore () |
void | Maximize () |
void | Close () |
virtual bool | IsOfType (eEntityType eType) |
Public Attributes | |
int | m_iWindowState |
A window, by default, have a title bar, a status bar, and 3 buttons in title bar. It can be resized by using those buttons.
Definition at line 2147 of file GUI.h.
|
Method details: Closes the window (makes it invisible)Definition at line 356 of file GUIWindow.cpp. References CGUIElement::Hide(), and CGUIElement::HideSiblings(). Referenced by ProcessMessage(). |
|
Method details:
References CGUIElement::Create(), CGUIElement::GetChild(), CGUIElement::IsChild(), CDoubleList< T >::push_back(), CDoubleList< CGUIElement * >::push_back(), CGUIElement::RemoveChild(), CEntity::SetName(), CGUIElement::SetParent(), and CGUIElement::SetType(). |
|
Method details: Draws the widget Reimplemented from CGUIElement. Definition at line 187 of file GUIWindow.cpp. References CGUIElement::Draw(), CGUIElement::GetChild(), CGUIElement::HideSiblings(), CGUIElement::RemoveChild(), CGUIElement::ShowSiblings(), and CGUIElement::Visible(). |
|
Method details: Initializes GUI Border' variables Reimplemented from CGUIElement. Definition at line 14 of file GUIWindow.cpp. References m_iWindowState, and CGUIElement::SetType(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIElement. Definition at line 427 of file GUIWindow.cpp. References CGUIElement::IsOfType(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 95 of file GUIWindow.cpp. References CGUIElement::GetChild(), CGUIElement::GetChildCount(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), CGUIElement::GetType(), CGUIElement::LoadXML(), CGUIElement::RemoveChild(), CGUIElement::SetFlag(), CGUIElement::SetType(), and CLogger::Write(). |
|
Method details: Maximizes the window to the maximum size of the GUIDefinition at line 389 of file GUIWindow.cpp. References CGUIElement::GetChild(), CGUIElement::GetGUI(), CGUIElement::GetRect(), m_iWindowState, Resize(), CGUIElement::SetFlag(), and CGUIElement::SetRect(). Referenced by ProcessMessage(). |
|
Method details: Minimizes the windowDefinition at line 404 of file GUIWindow.cpp. References CGUIElement::GetChild(), CGUIElement::GetHeight(), CGUIElement::GetRect(), CGUIElement::Hide(), m_iWindowState, Resize(), CGUIElement::SetFlag(), and CGUIElement::SetHeight(). Referenced by ProcessMessage(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 300 of file GUIWindow.cpp. References Close(), CGUIElement::GetChild(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::IsChild(), m_iWindowState, Maximize(), Minimize(), tGUIMessage::pSender, Resize(), and Restore(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 206 of file GUIWindow.cpp. References CGUIElement::GetChild(), CGUIElement::GetChildCount(), CGUIElement::GetHeight(), CGUIElement::GetRect(), CGUIElement::GetType(), m_iWindowState, CGUIElement::RemoveChild(), CGUIElement::Resize(), CGUIElement::SetHeight(), CGUIElement::SetRect(), and CGUIElement::Visible(). Referenced by Maximize(), Minimize(), ProcessMessage(), and Restore(). |
|
Method details: Restores the window to it's original sizeDefinition at line 362 of file GUIWindow.cpp. References CGUIElement::GetChild(), CGUIElement::GetRect(), m_iWindowState, Resize(), CGUIElement::SetFlag(), CGUIElement::SetRect(), CGUIButton::SetState(), and CGUIElement::Show(). Referenced by ProcessMessage(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 163 of file GUIWindow.cpp. References CGUIElement::SaveXML(), and TiXmlNode::ToElement(). |
|
Window state
Referenced by Initialize(), Maximize(), Minimize(), ProcessMessage(), Resize(), and Restore(). |