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

D:/Programming/GUI Editor (Source)/GUITextBox.cpp

00001 #include "StdAfx.h" 00002 #include "GUI.h" 00003 00004 CGUITextBox::CGUITextBox() 00005 { 00006 SetEntityType(Entity_GUITextBox); 00007 Initialize(); 00008 } 00009 00010 CGUITextBox::~CGUITextBox() 00011 { 00012 Destroy(); 00013 } 00014 00015 void CGUITextBox::Initialize() 00016 { 00017 SetType(GUI_TextBox); 00018 m_uiLenCharPos = m_uiSelStart = m_uiSelEnd = 0; 00019 00020 m_strElementType = "TextBox"; 00021 } 00022 00023 int CGUITextBox::Create(CGUIElement *pParent, tRect WidgetRect, CCustomFont *pFont, CTexture *pTexture, CMaterial *pMaterial, bool bBorder) 00024 { 00025 return CGUIStatic::Create(pParent, WidgetRect, pFont, pTexture, pMaterial, bBorder); 00026 } 00027 00028 int CGUITextBox::LoadXML( TiXmlNode *pDataNode, CString strFilename) 00029 { 00030 TiXmlElement* pXMLElement = NULL; 00031 const char *pcValue = NULL; 00032 00033 int iRetValue = CGUIStatic::LoadXML(pDataNode, strFilename); // LoadXML the data of derivative 00034 if(iRetValue !=1) 00035 return iRetValue; 00036 00037 pXMLElement = m_pXMLElement; 00038 00039 return 1; // All went OK, return 1 00040 } 00041 00042 int CGUITextBox::SaveXML(TiXmlNode *pDataNode, CString strFilename) 00043 { 00044 00045 return 0; 00046 } 00047 00048 void CGUITextBox::Draw() 00049 { 00050 CGUIStatic::Draw(); 00051 } 00052 00053 int CGUITextBox::Resize(tRect& NewRect) 00054 { 00055 int iRetValue = CGUIStatic::Resize(NewRect); 00056 00057 return iRetValue; 00058 } 00059 00060 void CGUITextBox::Destroy() 00061 { 00062 00063 } 00064 00065 bool CGUITextBox::IsOfType(eEntityType eType) 00066 { 00067 if(eType == Entity_GUITextBox) 00068 return true; 00069 00070 return CGUIStatic::IsOfType(eType); 00071 }

Generated on Sun Jul 17 21:34:27 2005 for OpenGL GUI by doxygen 1.3.8