GuiTextField Class Reference

A class to display moving text. More...

#include <guitextfield.h>

Inheritance diagram for GuiTextField:

Inheritance graph
[legend]
Collaboration diagram for GuiTextField:

Collaboration graph
[legend]
List of all members.

Public Types

typedef SdlFont::HAlign HAlign
typedef SdlFont::VAlign VAlign

Public Member Functions

DECLSPEC GuiTextField (const SDL_Rect &r, GuiElement *el, const char *name, const char *t=0, Uint32 c=CLR_INVALID, SdlSurface *bgbmp=NULL)
DECLSPEC GuiTextField (TiXmlElement *el, GuiElement *p)
virtual const char * getClassName ()
void startMove (int t)
void setText (const char *t)
void setAlign (VAlign v, HAlign h)

Static Public Member Functions

static void newguiobject (void *presult, BasicObject *o, void *xmldata)

Protected Member Functions

virtual DECLSPEC void onInit ()

Detailed Description

A class to display moving text.

Todo:
this class is unfinished


Constructor & Destructor Documentation

GuiTextField::GuiTextField ( TiXmlElement el,
GuiElement p 
)

Constructor. Uses XML data.

Parameters:
el the XML data for initialisation
p parent element (or NULL, to take GuiManager::the as parent)
See also:
GuiElement(TiXmlElement*,GuiElement*)


Member Function Documentation

virtual const char* GuiTextField::getClassName (  )  [inline, virtual]

This function should be overriden in every sub-class of BasicObject!

Returns:
the name of the class.

Reimplemented from GuiFlowWindow.

void GuiTextField::startMove ( int  t  ) 

void GuiTextField::onInit (  )  [protected, virtual]

Initializes the object's variables by reading data from the XML element. If there were no XML data used for creation, nothing is done. This function calls onInit() of its children recursively (after it has inited itself). It is highly recommended to call BasicObject::onInit(), usually at the end of the onInit() method, when overwriting it in a derived class.

Reimplemented from GuiFlowWindow.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:28 2007 for netrinjo by  doxygen 1.5.1