aedStaticText Class Reference

This class is used for displaying labels and is the base class for the textbox widget. More...

#include <aedStaticText.h>

Inheritance diagram for aedStaticText:

Inheritance graph
[legend]
Collaboration diagram for aedStaticText:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 aedStaticText ()
virtual ~aedStaticText ()
virtual void render (void)
virtual void setJustification (aedJusts just)
 Set text justification.
void setFontSize (Uint8 size)
 Set font size.
Uint8 getFontSize (void) const
void setTextColor (aedColor color)
 Set text color.
void setTextBold (bool bold)
 Enable/disable bold text.
void setWordWrap (bool state)
 Enable/disable word wrapping.
int getPosAtPixel (int x, int y)
virtual void setCaption (const std::string &caption)

Protected Member Functions

void updateFont ()

Protected Attributes

aedColor m_TextColor
aedJusts m_Justification

Private Attributes

Uint8 m_FontSize
bool m_TextBold
bool m_WordWrap

Detailed Description

This class is used for displaying labels and is the base class for the textbox widget.


Constructor & Destructor Documentation

aedStaticText::aedStaticText (  ) 

virtual aedStaticText::~aedStaticText (  )  [virtual]


Member Function Documentation

Uint8 aedStaticText::getFontSize ( void   )  const [inline]

int aedStaticText::getPosAtPixel ( int  x,
int  y 
)

virtual void aedStaticText::render ( void   )  [virtual]

Reimplemented from aedWidget.

Reimplemented in aedTextBox.

virtual void aedStaticText::setCaption ( const std::string &  caption  )  [virtual]

Reimplemented from aedWidget.

void aedStaticText::setFontSize ( Uint8  size  ) 

Set font size.

virtual void aedStaticText::setJustification ( aedJusts  just  )  [inline, virtual]

Set text justification.

Parameters:
just one of AED_JUST_LEFT, AED_JUST_CENTER, AED_JUST_RIGHT

void aedStaticText::setTextBold ( bool  bold  ) 

Enable/disable bold text.

void aedStaticText::setTextColor ( aedColor  color  )  [inline]

Set text color.

void aedStaticText::setWordWrap ( bool  state  )  [inline]

Enable/disable word wrapping.

void aedStaticText::updateFont (  )  [protected]


Member Data Documentation

Uint8 aedStaticText::m_FontSize [private]

aedJusts aedStaticText::m_Justification [protected]

bool aedStaticText::m_TextBold [private]

aedColor aedStaticText::m_TextColor [protected]

bool aedStaticText::m_WordWrap [private]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:25 2007 for MetalWarriors by  doxygen 1.4.7