#include <GUI.h>
Inheritance diagram for CGUIStatic:
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 int | Resize (tRect &NewRect) |
virtual void | Destroy () |
void | DrawText () |
const CCustomFont * | GetFont () |
void | SetFont (CBitmapFont *pBitmapFont) |
CString & | GetText () |
void | SetText (CString &strText) |
void | SetTextAlign (DWORD dwTextAlignFlags) |
DWORD | GetTextAlign () |
UINT | GetTextLength () |
UINT | GetLineCount () |
UINT | GetLineLength (UINT uiLine) |
void | ShowText () |
void | HideText () |
virtual bool | IsOfType (eEntityType eType) |
Protected Member Functions | |
CString | GetLine (UINT uiLine, UINT uiCharacterCount=0) |
Protected Attributes | |
int | m_iHorizontalAlign |
int | m_iVerticalAlign |
CString | m_strFontName |
CString | m_strFontFilename |
int | m_iFontIndex |
tVERTEX2d | m_TextPos |
CString | m_strText |
CCustomFont * | m_pFont |
bool | m_bTextVisible |
This is basically a CGUIElement with the ability to display text using provided Bitmap Font and additional parameters for it (alignment, etc)
Definition at line 930 of file GUI.h.
|
Method details:
Reimplemented in CGUITextBox, CGUIButton, CGUIMenuEntry, CGUIMenu, and CGUIRadioGroup. Definition at line 31 of file GUIStatic.cpp. References CGUIElement::Create(), and m_pFont. Referenced by CGUITextBox::Create(), CGUITabControl::Create(), CGUIScrollBar::Create(), CGUIRadioGroup::Create(), CGUIProgressBar::Create(), and CGUIButton::Create(). |
|
Method details: Destroys the widget - e.g Pre-destructor (resets variables) Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, and CGUIMenuEntry. Definition at line 424 of file GUIStatic.cpp. References CGUIElement::Destroy(). Referenced by CGUIButton::Destroy(). |
|
Method details: Draws the widget Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 164 of file GUIStatic.cpp. References CGUIElement::Draw(), DrawText(), and m_bTextVisible. Referenced by CGUITextBox::Draw(), CGUITabControl::Draw(), CGUIScrollBar::Draw(), CGUIRadioGroup::Draw(), CGUIProgressBar::Draw(), and CGUIButton::Draw(). |
|
Method details: Draws only text that this Static (or Static-derived) Control hasDefinition at line 172 of file GUIStatic.cpp. References CBitmapFont::Draw(), CCustomFont::GetFontType(), CGUIElement::GetHeight(), GetLine(), GetLineCount(), GetLineLength(), CBitmapFont::GetQuadHeight(), CBitmapFont::GetQuadLength(), CGUIElement::GetRect(), CGUIElement::GetWidth(), m_iHorizontalAlign, m_iVerticalAlign, m_pFont, m_strText, m_TextPos, CBitmapFont::SetTextPos(), tVERTEX2d::x, and tVERTEX2d::y. Referenced by Draw(), and CGUIProgressBar::Draw(). |
|
Method details:
References m_pFont. Referenced by CGUIListBox::Resize(). |
|
Method details:
References GetLineLength(), and m_strText. Referenced by DrawText(). |
|
Method details:
References m_strText. Referenced by DrawText(), and CGUIListBox::Resize(). |
|
Method details:
References m_strText. Referenced by DrawText(), GetLine(), and CGUIListBox::Resize(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 386 of file GUIStatic.cpp. References CDoubleList< T >::at(), CEntity::GetName(), CGUIElement::GetProperties(), CSingleton< CFontManager >::GetSingleton(), m_bTextVisible, m_iFontIndex, m_iHorizontalAlign, m_iVerticalAlign, m_strFontFilename, m_strFontName, m_strText, and CDoubleList< T >::size(). Referenced by CGUIScrollBar::GetProperties(), CGUIRadioGroup::GetProperties(), CGUIProgressBar::GetProperties(), and CGUIButton::GetProperties(). |
|
Method details:
References m_strText. Referenced by CGUIDropList::SetCurSel(). |
|
Method details:
|
|
Method details:
References m_strText. |
|
Method details:
References m_bTextVisible. Referenced by CGUIMenuEntry::HideSiblingsText(), and CGUIListBox::Resize(). |
|
Method details: Initializes Static Control' variables Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 16 of file GUIStatic.cpp. References m_bTextVisible, m_iFontIndex, m_iHorizontalAlign, m_iVerticalAlign, m_pFont, m_strFontFilename, m_strFontName, m_strText, and m_TextPos. |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 362 of file GUIStatic.cpp. References CGUIElement::IsOfType(). Referenced by CGUITextBox::IsOfType(), CGUIScrollBar::IsOfType(), CGUIRadioGroup::IsOfType(), CGUIProgressBar::IsOfType(), and CGUIButton::IsOfType(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 42 of file GUIStatic.cpp. References TiXmlElement::Attribute(), CEntity::GetID(), CEntity::GetName(), CSingleton< CFontManager >::GetSingleton(), CSingleton< CGlobalLogger >::GetSingleton(), CFontManager::LoadResource(), CGUIElement::LoadXML(), m_iHorizontalAlign, m_iVerticalAlign, m_pFont, m_strText, and CLogger::Write(). Referenced by CGUITextBox::LoadXML(), CGUIScrollBar::LoadXML(), CGUIRadioGroup::LoadXML(), CGUIProgressBar::LoadXML(), and CGUIButton::LoadXML(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 370 of file GUIStatic.cpp. References CFontManager::GetResource(), CSingleton< CFontManager >::GetSingleton(), m_iFontIndex, m_pFont, and CGUIElement::PropertyChanging(). Referenced by CGUIScrollBar::PropertyChanging(), CGUIRadioGroup::PropertyChanging(), CGUIProgressBar::PropertyChanging(), and CGUIButton::PropertyChanging(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIScrollBar, CGUIProgressBar, CGUIDropList, and CGUIMenuEntry. Definition at line 157 of file GUIStatic.cpp. References CGUIElement::Resize(). Referenced by CGUIRadioGroup::InsertItem(), CGUITextBox::Resize(), CGUIScrollBar::Resize(), CGUIProgressBar::Resize(), and CGUIMenuEntry::Resize(). |
|
Method details:
Reimplemented from CGUIElement.
Reimplemented in CGUITextBox, CGUIButton, CGUIScrollBar, CGUIProgressBar, CGUIDropList, CGUIMenuEntry, CGUIMenu, CGUIRadioGroup, and CGUITabControl. Definition at line 108 of file GUIStatic.cpp. References CEntity::GetName(), TiXmlNode::InsertEndChild(), m_iHorizontalAlign, m_iVerticalAlign, m_pFont, m_strText, TiXmlDocument::SaveFile(), CGUIElement::SaveXML(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). Referenced by CGUIScrollBar::SaveXML(), CGUIProgressBar::SaveXML(), and CGUIButton::SaveXML(). |
|
Method details:
References m_pFont. |
|
Method details:
References m_strText. Referenced by CGUIScrollBar::Draw(), CGUIProgressBar::Draw(), CGUIRadioGroup::InsertItem(), CGUIMenuEntry::InsertItem(), CGUIListBox::InsertItem(), CGUIDropList::InsertItem(), and CGUIDropList::SetCurSel(). |
|
Method details:
|
|
Method details:
References m_bTextVisible. Referenced by CGUIListBox::Resize(), and CGUIMenuEntry::ShowSiblingsText(). |
|
If True, text will be drawn, otherwise not Definition at line 1085 of file GUI.h. Referenced by Draw(), GetProperties(), HideText(), Initialize(), and ShowText(). |
|
Database Font Index Definition at line 1072 of file GUI.h. Referenced by GetProperties(), Initialize(), and PropertyChanging(). |
|
Horizontal Text alignment (left, center or right)
Referenced by DrawText(), GetProperties(), Initialize(), LoadXML(), and SaveXML(). |
|
Vertical Text alignment (top, middle or bottom)
Referenced by DrawText(), GetProperties(), Initialize(), LoadXML(), and SaveXML(). |
|
Pointer to font Definition at line 1084 of file GUI.h. Referenced by Create(), DrawText(), GetFont(), Initialize(), LoadXML(), PropertyChanging(), SaveXML(), and SetFont(). |
|
Font Filename Definition at line 1071 of file GUI.h. Referenced by GetProperties(), and Initialize(). |
|
Font strName Definition at line 1070 of file GUI.h. Referenced by GetProperties(), and Initialize(). |
|
Text string Definition at line 1083 of file GUI.h. Referenced by DrawText(), GetLine(), GetLineCount(), GetLineLength(), GetProperties(), GetText(), GetTextLength(), Initialize(), LoadXML(), SaveXML(), and SetText(). |
|
XY Text coordinate (top left of first character) Definition at line 1082 of file GUI.h. Referenced by DrawText(), and Initialize(). |