#include <GUI.h>
Inheritance diagram for CGUIProgressBar:
Public Member Functions | |
virtual void | Initialize () |
virtual int | Create (CGUIElement *pParent, tRect WidgetRect, eGUIControlType ProgressBarType, CGUIElement *pPosElement=NULL, CGUIElement *pNegElement=NULL, 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 int | Resize (tRect &NewRect) |
void | SetRange (UINT uiMin, UINT uiMax, bool bMinToMax=true) |
tVERTEX2d & | GetRange () |
UINT | GetCurPos () |
virtual void | SetCurPos (float fPos) |
virtual bool | IsOfType (eEntityType eType) |
Protected Member Functions | |
virtual void | ProcessMessage (tGUIMessage &Message) |
Protected Attributes | |
bool | m_bMinToMax |
bool | m_bAutoCoordCalc |
int | m_iCurPos |
int | m_iMinPos |
int | m_iMaxPos |
double | m_fCurPos |
double | m_fPixelPerValue |
This control represents a simple scrollbar (vertical OR horizontal). It features 3 buttons, increment, decrement and thumb ones that are used to control the value of the scrollbar.
Definition at line 1429 of file GUI.h.
|
Method details:
References CGUIElement::CGUIElement(), CGUIElement::Create(), CGUIStatic::Create(), CGUIElement::GetChild(), CGUIElement::IsChild(), m_iCurPos, m_iMaxPos, m_iMinPos, CDoubleList< CGUIElement * >::push_back(), CGUIElement::RemoveChild(), Resize(), SetCurPos(), CGUIElement::SetFlag(), CEntity::SetName(), CGUIElement::SetParent(), SetRange(), and CGUIElement::SetType(). Referenced by LoadXML(). |
|
Method details: Draws the widget Reimplemented from CGUIStatic. Definition at line 213 of file GUIProgressBar.cpp. References CGUIStatic::Draw(), CGUIStatic::DrawText(), CGUIElement::GetChild(), CTexture::GetHeight(), CGUIElement::GetHeight(), CGUIElement::GetTexture(), CGUIElement::GetType(), CTexture::GetWidth(), CGUIElement::GetWidth(), m_bAutoCoordCalc, m_iCurPos, CGUIElement::RemoveChild(), CGUIElement::SetTexCoord(), CGUIStatic::SetText(), and CGUIElement::Visible(). |
|
Method details:
References m_iCurPos. |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 459 of file GUIProgressBar.cpp. References CGUIStatic::GetProperties(), m_bAutoCoordCalc, m_bMinToMax, m_iCurPos, m_iMaxPos, and m_iMinPos. |
|
Method details:
|
|
Method details: Initializes ProgressBar Control' variables Reimplemented from CGUIStatic. Definition at line 14 of file GUIProgressBar.cpp. References m_bAutoCoordCalc, m_bMinToMax, m_fCurPos, m_fPixelPerValue, m_iCurPos, m_iMaxPos, m_iMinPos, and CGUIElement::SetType(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIStatic. Definition at line 424 of file GUIProgressBar.cpp. References CGUIStatic::IsOfType(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 88 of file GUIProgressBar.cpp. References TiXmlElement::Attribute(), Create(), CGUIElement::GetChild(), CGUIElement::GetChildCount(), CEntity::GetID(), CEntity::GetName(), CGUIElement::GetParent(), CGUIElement::GetRect(), CSingleton< CGlobalLogger >::GetSingleton(), CGUIElement::GetType(), CGUIStatic::LoadXML(), m_fCurPos, m_iCurPos, m_iMaxPos, m_iMinPos, CGUIElement::SetFlag(), CGUIElement::SetType(), and CLogger::Write(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 397 of file GUIProgressBar.cpp. References CDoubleList< CGUIElement * >::begin(), CGUIElement::GetRect(), CGUIElement::GetType(), CDoubleList< CGUIElement * >::next(), tGUIMessage::pSender, Resize(), and CDoubleList< CGUIElement * >::set_ptr(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 432 of file GUIProgressBar.cpp. References m_fCurPos, m_iCurPos, m_iMaxPos, m_iMinPos, CGUIStatic::PropertyChanging(), SetCurPos(), and SetRange(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 292 of file GUIProgressBar.cpp. References CGUIElement::GetChild(), CGUIElement::GetRect(), CGUIElement::GetType(), m_bMinToMax, m_fCurPos, m_fPixelPerValue, m_iCurPos, m_iMaxPos, m_iMinPos, CGUIStatic::Resize(), SetRange(), and CGUIElement::SetRect(). Referenced by Create(), ProcessMessage(), and SetCurPos(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 175 of file GUIProgressBar.cpp. References CGUIElement::GetType(), TiXmlNode::InsertEndChild(), m_iCurPos, m_iMaxPos, m_iMinPos, TiXmlDocument::SaveFile(), CGUIStatic::SaveXML(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). |
|
Method details:
References CGUIElement::GetRect(), m_iCurPos, m_iMaxPos, m_iMinPos, and Resize(). Referenced by Create(), and PropertyChanging(). |
|
Method details:
References CGUIElement::GetHeight(), CGUIElement::GetType(), CGUIElement::GetWidth(), m_bMinToMax, m_fPixelPerValue, m_iMaxPos, and m_iMinPos. Referenced by Create(), PropertyChanging(), and Resize(). |
|
Automatic texture coordinate(s) calculation for positive & negative elements Definition at line 1534 of file GUI.h. Referenced by Draw(), GetProperties(), and Initialize(). |
|
Direction in which it progesses Definition at line 1533 of file GUI.h. Referenced by GetProperties(), Initialize(), Resize(), and SetRange(). |
|
Floating current position (see PPV) Definition at line 1539 of file GUI.h. Referenced by Initialize(), LoadXML(), PropertyChanging(), and Resize(). |
|
Pixel Per Value attribute Definition at line 1539 of file GUI.h. Referenced by Initialize(), Resize(), and SetRange(). |
|
Current progressbar position Definition at line 1536 of file GUI.h. Referenced by Create(), Draw(), GetCurPos(), GetProperties(), Initialize(), LoadXML(), PropertyChanging(), Resize(), SaveXML(), and SetCurPos(). |
|
uiMax value Definition at line 1536 of file GUI.h. Referenced by Create(), GetProperties(), GetRange(), Initialize(), LoadXML(), PropertyChanging(), Resize(), SaveXML(), SetCurPos(), and SetRange(). |
|
uiMin value Definition at line 1536 of file GUI.h. Referenced by Create(), GetProperties(), GetRange(), Initialize(), LoadXML(), PropertyChanging(), Resize(), SaveXML(), SetCurPos(), and SetRange(). |