GLWTextButton Class Reference

#include <GLWTextButton.h>

Inheritance diagram for GLWTextButton:

GLWButton GLWidget MetaClass

List of all members.

Public Member Functions

 GLWTextButton (const LangString &buttonText=LangString(), float x=0.0f, float y=0.0f, float w=0.0f, GLWButtonI *handler=0, unsigned flags=0, float size=14.0f)
virtual ~GLWTextButton ()
virtual void draw ()
void setText (const LangString &text)
void setColor (const Vector &color)
bool getEmpty ()
 REGISTER_CLASS_HEADER (GLWTextButton)

Protected Attributes

GLWLabel label_
Vector color_


Detailed Description

Definition at line 27 of file GLWTextButton.h.


Constructor & Destructor Documentation

GLWTextButton::GLWTextButton ( const LangString buttonText = LangString(),
float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
GLWButtonI handler = 0,
unsigned  flags = 0,
float  size = 14.0f 
)

Definition at line 26 of file GLWTextButton.cpp.

GLWTextButton::~GLWTextButton (  )  [virtual]

Definition at line 35 of file GLWTextButton.cpp.


Member Function Documentation

void GLWTextButton::draw (  )  [virtual]

Reimplemented from GLWButton.

Definition at line 39 of file GLWTextButton.cpp.

References GLWButton::ButtonFlagCenterX, GLWLabel::calcWidth(), color_, GLWFont::disabledWidgetFontColor, GLWLabel::draw(), GLWButton::draw(), GLWButton::enabled_, GLWButton::flags_, GLWLabel::getW(), label_, GLWButton::pressed_, GLWLabel::setColor(), GLWidget::setX(), GLWidget::setY(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWIconTable::draw().

void GLWTextButton::setText ( const LangString text  )  [inline]

Definition at line 39 of file GLWTextButton.h.

References label_, and GLWLabel::setText().

Referenced by NetworkSelectDialog::select(), and NetworkSelectDialog::updateTable().

void GLWTextButton::setColor ( const Vector color  )  [inline]

Definition at line 41 of file GLWTextButton.h.

References color_.

Referenced by BuyAccessoryDialog::addAccessory().

bool GLWTextButton::getEmpty (  )  [inline]

Definition at line 42 of file GLWTextButton.h.

References GLWLabel::getEmpty(), and label_.

Referenced by GLWIconTable::draw().

GLWTextButton::REGISTER_CLASS_HEADER ( GLWTextButton   ) 


Member Data Documentation

GLWLabel GLWTextButton::label_ [protected]

Definition at line 47 of file GLWTextButton.h.

Referenced by draw(), getEmpty(), and setText().

Vector GLWTextButton::color_ [protected]

Definition at line 48 of file GLWTextButton.h.

Referenced by draw(), and setColor().


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