Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

CGUITextBox Class Reference

Text Box Control. More...

#include <GUI.h>

Inheritance diagram for CGUITextBox:

CGUIStatic CGUIElement CXMLResource CDoubleList< CGUIElement * > CResource CEntity List of all members.

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 void Draw ()
virtual int LoadXML (TiXmlNode *pDataNode, CString strFilename)
virtual int SaveXML (TiXmlNode *pDataNode, CString strFilename)
virtual int Resize (tRect &NewRect)
virtual void Destroy ()
virtual bool IsOfType (eEntityType eType)

Detailed Description

Text Box Control.

This control provides an extension of the static control by allowing text to be edited. It also features a child element that represents a caret.

Definition at line 1093 of file GUI.h.


Member Function Documentation

int CGUITextBox::Create CGUIElement pParent,
tRect  WidgetRect,
CCustomFont pFont = NULL,
CTexture pTexture = NULL,
CMaterial pMaterial = NULL,
bool  bBorder = false
[virtual]
 

Method details:

Parameters:
pParent - Pointer to parent widget
WidgetRect - Rectangle for this widget
pFont - Pointer to CCustomFont derived font for the widget to draw the text
pTexture - Pointer to texture
pMaterial - Pointer to material
bBorder - does this widget has a border?
Returns:
1 if sucessful, 0 if not

Reimplemented from CGUIStatic.

Definition at line 23 of file GUITextBox.cpp.

References CGUIStatic::Create().

void CGUITextBox::Destroy  )  [virtual]
 

Method details: Destroys the widget - e.g Pre-destructor (resets variables)

Reimplemented from CGUIStatic.

Definition at line 60 of file GUITextBox.cpp.

void CGUITextBox::Draw  )  [virtual]
 

Method details: Draws the widget

Reimplemented from CGUIStatic.

Definition at line 48 of file GUITextBox.cpp.

References CGUIStatic::Draw().

void CGUITextBox::Initialize  )  [virtual]
 

Method details: Initializes TextBox Control' variables

Reimplemented from CGUIStatic.

Definition at line 15 of file GUITextBox.cpp.

References CGUIElement::SetType().

bool CGUITextBox::IsOfType eEntityType  eType  )  [virtual]
 

Method details: This is an implementation of Custom RTTI

Reimplemented from CGUIStatic.

Definition at line 65 of file GUITextBox.cpp.

References CGUIStatic::IsOfType().

int CGUITextBox::LoadXML TiXmlNode pDataNode,
CString  strFilename
[virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that holds data for this widget
strFilename - String containing filename where the data for the widget is stored

Reimplemented from CGUIStatic.

Definition at line 28 of file GUITextBox.cpp.

References CGUIStatic::LoadXML().

int CGUITextBox::Resize tRect &  NewRect  )  [virtual]
 

Method details:

Parameters:
NewRect - New rectangle for the widget
Returns:
Varied returns
See also:
GUI_Message_SizeX/Y/XY

Reimplemented from CGUIStatic.

Definition at line 53 of file GUITextBox.cpp.

References CGUIStatic::Resize().

int CGUITextBox::SaveXML TiXmlNode pDataNode,
CString  strFilename
[virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that will be the parent hold the data for this element
strFilename - String containing filename where the data for the widget is stored

Reimplemented from CGUIStatic.

Definition at line 42 of file GUITextBox.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Jul 17 21:34:30 2005 for OpenGL GUI by doxygen 1.3.8