#include <GUI.h>
Inheritance diagram for CGUIScrollBar:
Public Member Functions | |
virtual void | Initialize () |
virtual int | Create (CGUIElement *pParent, tRect WidgetRect, eGUIControlType ScrollBarType, CGUIButton *pIncButton=NULL, CGUIButton *pDecButton=NULL, CGUIButton *pThumbButton=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) |
virtual int | OnLMouseUp (UINT x, UINT y) |
void | SetRange (UINT uiMin, UINT uiMax) |
tVERTEX2d & | GetRange () |
UINT | GetCurPos () |
virtual void | SetCurPos (float fPos) |
virtual bool | IsOfType (eEntityType eType) |
Protected Member Functions | |
virtual void | ProcessMessage (tGUIMessage &Message) |
Protected Attributes | |
int | m_iCurPos |
int | m_iMinPos |
int | m_iMaxPos |
int | m_iBtnInc |
int | m_iScrlInc |
int | m_iPrevPos |
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 1300 of file GUI.h.
|
Method details:
References CGUIButton::Create(), CGUIStatic::Create(), CGUIElement::GetChild(), CGUIElement::GetType(), CGUIElement::IsChild(), m_iCurPos, m_iMaxPos, m_iMinPos, CDoubleList< CGUIElement * >::push_back(), CGUIElement::RemoveChild(), Resize(), SetCurPos(), CGUIElement::SetFlag(), CGUIElement::SetParent(), SetRange(), and CGUIElement::SetType(). Referenced by LoadXML(). |
|
Method details: Draws the widget Reimplemented from CGUIStatic. Definition at line 232 of file GUIScrollBar.cpp. References CGUIStatic::Draw(), m_iCurPos, and CGUIStatic::SetText(). |
|
Method details:
References m_iCurPos. |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 587 of file GUIScrollBar.cpp. References CGUIStatic::GetProperties(), m_iBtnInc, m_iCurPos, m_iMaxPos, m_iMinPos, and m_iScrlInc. |
|
Method details:
|
|
Method details: Initializes ScrollBar Control' variables Reimplemented from CGUIStatic. Definition at line 18 of file GUIScrollBar.cpp. References m_fCurPos, m_fPixelPerValue, m_iBtnInc, m_iMaxPos, m_iMinPos, m_iPrevPos, m_iScrlInc, and CGUIElement::SetType(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIStatic. Definition at line 552 of file GUIScrollBar.cpp. References CGUIStatic::IsOfType(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 109 of file GUIScrollBar.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_iBtnInc, m_iCurPos, m_iMaxPos, m_iMinPos, CGUIElement::SetType(), and CLogger::Write(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 499 of file GUIScrollBar.cpp. References CGUIElement::GetChild(), CGUIElement::GetRect(), CGUIElement::GetType(), m_iCurPos, m_iScrlInc, CGUIElement::OnLMouseUp(), and SetCurPos(). |
|
Method details:
Reimplemented from CGUIElement. Definition at line 457 of file GUIScrollBar.cpp. References CMouse::GetCursorPos(), CInputEngine::GetMouse(), CMouse::GetPrevCursorPos(), CGUIElement::GetRect(), CSingleton< CInputEngine >::GetSingleton(), CGUIElement::GetType(), CGUIElement::IsChild(), m_fCurPos, m_fPixelPerValue, m_iBtnInc, m_iMaxPos, m_iMinPos, tGUIMessage::pSender, Resize(), SetCurPos(), tVERTEX2d::x, and tVERTEX2d::y. |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 560 of file GUIScrollBar.cpp. References m_fCurPos, m_iCurPos, m_iMaxPos, m_iMinPos, CGUIStatic::PropertyChanging(), SetCurPos(), and SetRange(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 241 of file GUIScrollBar.cpp. References CGUIElement::GetChild(), CGUIElement::GetHeight(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::GetWidth(), m_fCurPos, CGUIElement::RemoveChild(), CGUIStatic::Resize(), SetCurPos(), and CGUIElement::SetRect(). Referenced by Create(), ProcessMessage(), and SetRange(). |
|
Method details:
Reimplemented from CGUIStatic. Definition at line 193 of file GUIScrollBar.cpp. References CGUIElement::GetType(), TiXmlNode::InsertEndChild(), m_iBtnInc, m_iCurPos, m_iMaxPos, m_iMinPos, TiXmlDocument::SaveFile(), CGUIStatic::SaveXML(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). |
|
Method details:
References CGUIElement::GetChild(), CGUIElement::GetGUI(), CGUIElement::GetHeight(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::GetWidth(), m_fCurPos, m_fPixelPerValue, m_iCurPos, m_iMaxPos, m_iMinPos, m_iPrevPos, CGUI::PostMessage(), and CGUIElement::SetRect(). Referenced by Create(), OnLMouseUp(), ProcessMessage(), PropertyChanging(), and Resize(). |
|
Method details:
References CGUIElement::GetHeight(), CGUIElement::GetRect(), CGUIElement::GetType(), CGUIElement::GetWidth(), m_fPixelPerValue, m_iMaxPos, m_iMinPos, and Resize(). Referenced by Create(), and PropertyChanging(). |
|
Floating point current position
Referenced by Initialize(), LoadXML(), ProcessMessage(), PropertyChanging(), Resize(), and SetCurPos(). |
|
Pixel Per Value attribute (how many pixels to scroll if a change of 1 unit has occured) Definition at line 1420 of file GUI.h. Referenced by Initialize(), ProcessMessage(), SetCurPos(), and SetRange(). |
|
Increments that much when clicked on button (either top - bottom, or left - right) Definition at line 1412 of file GUI.h. Referenced by GetProperties(), Initialize(), LoadXML(), ProcessMessage(), and SaveXML(). |
|
Current progress bar position Definition at line 1412 of file GUI.h. Referenced by Create(), Draw(), GetCurPos(), GetProperties(), LoadXML(), OnLMouseUp(), PropertyChanging(), SaveXML(), and SetCurPos(). |
|
Max scrollbar value Definition at line 1412 of file GUI.h. Referenced by Create(), GetProperties(), GetRange(), Initialize(), LoadXML(), ProcessMessage(), PropertyChanging(), SaveXML(), SetCurPos(), and SetRange(). |
|
Minimum scrollbar value Definition at line 1412 of file GUI.h. Referenced by Create(), GetProperties(), GetRange(), Initialize(), LoadXML(), ProcessMessage(), PropertyChanging(), SaveXML(), SetCurPos(), and SetRange(). |
|
Previous scrollbar value Definition at line 1418 of file GUI.h. Referenced by Initialize(), and SetCurPos(). |
|
Increments that much when clicked on the scrollbar (not on any of its buttons!) Definition at line 1412 of file GUI.h. Referenced by GetProperties(), Initialize(), and OnLMouseUp(). |