#include <GUI.h>
Inheritance diagram for CGUIButton:
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 void | Draw () |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Destroy () |
virtual int | OnLMouseUp (UINT x, UINT y) |
UINT | GetState () |
void | SetState (bool bLoopAnimation, UINT uiState) |
Sets button state. | |
virtual bool | IsOfType (eEntityType eType) |
Protected Member Functions | |
CTextureFrameAnimation * | GetEventAnimation (UINT uiEventIndex) |
CTextureFrameAnimation * | GetCurrentAnimation () |
bool | LoadButtonStates (TiXmlNode *pButtonXMLNode) |
bool | LoadStateEvents (tButtonState *uiState, TiXmlNode *pStateXMLNode) |
int | SaveButtonStates (TiXmlNode *pDataNode) |
int | SaveStateEvents (TiXmlNode *pDataNode, tButtonState *pState) |
This control has a possibility of being derived from CGUITextBox to be able to edit text, and at the same time maintain it's animations based on user mouse input.
Definition at line 1165 of file GUI.h.
|
Method details:
Reimplemented from CGUIStatic.
Reimplemented in CGUIMenuEntry, and CGUIMenu. Definition at line 30 of file GUIButton.cpp. References CGUIStatic::Create(). Referenced by CGUIScrollBar::Create(), CGUIMenuEntry::Create(), CGUIDropList::Create(), CGUIRadioGroup::InsertItem(), CGUIListBox::InsertItem(), and CGUIDropList::InsertItem(). |
|
Method details: Destroys the widget - e.g Pre-destructor (resets variables) Reimplemented from CGUIStatic.
Reimplemented in CGUIMenuEntry. Definition at line 593 of file GUIButton.cpp. References CGUIStatic::Destroy(). Referenced by PropertyChanging(). |
|
Method details: Draws the widget Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 115 of file GUIButton.cpp. References CTextureFrameAnimation::Animate(), CGUIStatic::Draw(), GetCurrentAnimation(), CFrameAnimation< TAnimation >::GetCurrentFrame(), CTexture::GetHeight(), CTextureFrameAnimation::GetTexture(), CTexture::GetWidth(), CGUIElement::SetTexture(), tVERTEX2f::x, and tVERTEX2f::y. Referenced by CGUIMenuEntry::Draw(). |
|
Method details:
References GetEventAnimation(), CInputEngine::GetMouse(), CGUIElement::GetRect(), CSingleton< CInputEngine >::GetSingleton(), and CMouse::IsButtonDown(). Referenced by Draw(). |
|
Method details:
References GetState(), and tButtonState::m_iEventCount. Referenced by GetCurrentAnimation(), and GetProperties(). |
|
Method details:
Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 467 of file GUIButton.cpp. References CDoubleList< T >::at(), CEntity::GetEntityType(), GetEventAnimation(), CEntity::GetName(), CGUIStatic::GetProperties(), CSingleton< CAnimationManager >::GetSingleton(), tButtonState::m_iEventCount, tButtonState::m_pEventAnimations, and CDoubleList< T >::size(). Referenced by CGUIMenuEntry::GetProperties(), and CGUIDropList::GetProperties(). |
|
Method details:
Referenced by GetEventAnimation(). |
|
Method details: Initializes Button Control' variables Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 17 of file GUIButton.cpp. Referenced by PropertyChanging(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 598 of file GUIButton.cpp. References CGUIStatic::IsOfType(). Referenced by CGUIMenuEntry::IsOfType(), and CGUIDropList::IsOfType(). |
|
Method details:
References TiXmlNode::FirstChild(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), TiXmlNode::IterateChildren(), LoadStateEvents(), TiXmlNode::pcValue(), and CLogger::Write(). Referenced by LoadXML(). |
|
Method details:
References TiXmlNode::FirstChild(), CEntity::GetEntityType(), CSingleton< CAnimationManager >::GetSingleton(), TiXmlNode::IterateChildren(), CAnimationManager::LoadResource(), tButtonState::m_iEventCount, tButtonState::m_pEventAnimations, and TiXmlNode::pcValue(). Referenced by LoadButtonStates(). |
|
Method details:
Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 35 of file GUIButton.cpp. References LoadButtonStates(), and CGUIStatic::LoadXML(). Referenced by CGUIRadioGroup::InsertItem(), CGUIListBox::InsertItem(), CGUIDropList::InsertItem(), CGUIMenuEntry::LoadXML(), and CGUIDropList::LoadXML(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 305 of file GUIButton.cpp. References CDoubleList< CGUIElement * >::end(), CGUI::GetActiveElement(), CGUIElement::GetGUI(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::OnLMouseUp(), CGUI::PostMessage(), CDoubleList< CGUIElement * >::prev(), CDoubleList< CGUIElement * >::set_ptr(), and CGUIElement::Visible(). |
|
Method details:
Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 348 of file GUIButton.cpp. References Destroy(), CAnimationManager::GetResource(), CSingleton< CAnimationManager >::GetSingleton(), Initialize(), tButtonState::m_iEventCount, tButtonState::m_pEventAnimations, and CGUIStatic::PropertyChanging(). Referenced by CGUIMenuEntry::PropertyChanging(), and CGUIDropList::PropertyChanging(). |
|
Method details:
References TiXmlNode::InsertEndChild(), and SaveStateEvents(). Referenced by SaveXML(). |
|
Method details:
References CEntity::GetName(), TiXmlNode::InsertEndChild(), tButtonState::m_iEventCount, tButtonState::m_pEventAnimations, and TiXmlElement::SetAttribute(). Referenced by SaveButtonStates(). |
|
Method details:
Reimplemented from CGUIStatic.
Reimplemented in CGUIDropList, CGUIMenuEntry, and CGUIMenu. Definition at line 50 of file GUIButton.cpp. References TiXmlNode::InsertEndChild(), SaveButtonStates(), TiXmlDocument::SaveFile(), CGUIStatic::SaveXML(), and TiXmlNode::ToElement(). Referenced by CGUIMenuEntry::SaveXML(), and CGUIDropList::SaveXML(). |