GLWTime Class Reference

#include <GLWTime.h>

Inheritance diagram for GLWTime:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWTime (float x=0.0f, float y=0.0f, float size=14.0f)
virtual ~GLWTime ()
virtual float getW ()
virtual void draw ()
void calcWidth ()
virtual bool initFromXML (XMLNode *node)
 REGISTER_CLASS_HEADER (GLWTime)

Protected Attributes

Vector color_
float size_


Detailed Description

Definition at line 28 of file GLWTime.h.


Constructor & Destructor Documentation

GLWTime::GLWTime ( float  x = 0.0f,
float  y = 0.0f,
float  size = 14.0f 
)

Definition at line 27 of file GLWTime.cpp.

References GLWidget::tooltipTransparent_.

GLWTime::~GLWTime (  )  [virtual]

Definition at line 34 of file GLWTime.cpp.


Member Function Documentation

virtual float GLWTime::getW (  )  [inline, virtual]

Reimplemented from GLWidget.

Definition at line 35 of file GLWTime.h.

References calcWidth(), and GLWidget::getW().

void GLWTime::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 55 of file GLWTime.cpp.

References calcWidth(), color_, GLWidget::draw(), GLFont2d::drawSubStr(), GLWFont::getGameFont(), glColor3f(), GLWFont::instance(), size_, LangStringUtil::strlen(), GLWidget::x_, and GLWidget::y_.

void GLWTime::calcWidth (  ) 

Definition at line 39 of file GLWTime.cpp.

References GLWFont::getGameFont(), GLFont2d::getWidth(), GLWFont::instance(), size_, and GLWidget::w_.

Referenced by draw(), and getW().

bool GLWTime::initFromXML ( XMLNode node  )  [virtual]

Reimplemented from GLWidget.

Definition at line 47 of file GLWTime.cpp.

References color_, XMLNode::getNamedChild(), GLWidget::initFromXML(), and size_.

GLWTime::REGISTER_CLASS_HEADER ( GLWTime   ) 


Member Data Documentation

Vector GLWTime::color_ [protected]

Definition at line 44 of file GLWTime.h.

Referenced by draw(), and initFromXML().

float GLWTime::size_ [protected]

Definition at line 45 of file GLWTime.h.

Referenced by calcWidth(), draw(), and initFromXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3