GLWCheckBoxText Class Reference

#include <GLWCheckBoxText.h>

Inheritance diagram for GLWCheckBoxText:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWCheckBoxText (float x=0.0f, float y=0.0f, const LangString &text=LangString(), bool startState=true, float offset=0.0f)
virtual ~GLWCheckBoxText ()
virtual void draw ()
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void mouseUp (int button, float x, float y, bool &skipRest)
virtual void mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest)
virtual float getW ()
virtual void setX (float x)
virtual void setY (float y)
GLWCheckBoxgetCheckBox ()
GLWLabelgetLabel ()
 REGISTER_CLASS_HEADER (GLWCheckBoxText)

Protected Attributes

float offset_
GLWCheckBox box_
GLWLabel label_


Detailed Description

Definition at line 27 of file GLWCheckBoxText.h.


Constructor & Destructor Documentation

GLWCheckBoxText::GLWCheckBoxText ( float  x = 0.0f,
float  y = 0.0f,
const LangString text = LangString(),
bool  startState = true,
float  offset = 0.0f 
)

Definition at line 25 of file GLWCheckBoxText.cpp.

GLWCheckBoxText::~GLWCheckBoxText (  )  [virtual]

Definition at line 36 of file GLWCheckBoxText.cpp.


Member Function Documentation

void GLWCheckBoxText::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 40 of file GLWCheckBoxText.cpp.

References box_, GLWLabel::draw(), GLWCheckBox::draw(), GLWidget::draw(), and label_.

void GLWCheckBoxText::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 47 of file GLWCheckBoxText.cpp.

References box_, label_, GLWCheckBox::mouseDown(), and GLWidget::mouseDown().

void GLWCheckBoxText::mouseUp ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 54 of file GLWCheckBoxText.cpp.

References box_, label_, and GLWidget::mouseUp().

void GLWCheckBoxText::mouseDrag ( int  button,
float  mx,
float  my,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 61 of file GLWCheckBoxText.cpp.

References box_, label_, and GLWidget::mouseDrag().

float GLWCheckBoxText::getW (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 68 of file GLWCheckBoxText.cpp.

References box_, GLWLabel::getW(), GLWidget::getW(), and label_.

void GLWCheckBoxText::setX ( float  x  )  [virtual]

Reimplemented from GLWidget.

Definition at line 73 of file GLWCheckBoxText.cpp.

References box_, GLWidget::getW(), label_, offset_, and GLWidget::setX().

void GLWCheckBoxText::setY ( float  y  )  [virtual]

Reimplemented from GLWidget.

Definition at line 80 of file GLWCheckBoxText.cpp.

References box_, label_, offset_, and GLWidget::setY().

Referenced by BuyAccessoryDialog::draw().

GLWCheckBox& GLWCheckBoxText::getCheckBox (  )  [inline]

Definition at line 45 of file GLWCheckBoxText.h.

References box_.

Referenced by TipDialog::buttonDown(), SoundDialog::buttonDown(), HUDDialog::buttonDown(), BuyAccessoryDialog::BuyAccessoryDialog(), TipDialog::display(), SoundDialog::display(), HUDDialog::display(), BuyAccessoryDialog::stateChange(), and BuyAccessoryDialog::tabDown().

GLWLabel& GLWCheckBoxText::getLabel (  )  [inline]

Definition at line 46 of file GLWCheckBoxText.h.

References label_.

Referenced by BuyAccessoryDialog::BuyAccessoryDialog().

GLWCheckBoxText::REGISTER_CLASS_HEADER ( GLWCheckBoxText   ) 


Member Data Documentation

float GLWCheckBoxText::offset_ [protected]

Definition at line 51 of file GLWCheckBoxText.h.

Referenced by setX(), and setY().

GLWCheckBox GLWCheckBoxText::box_ [protected]

Definition at line 52 of file GLWCheckBoxText.h.

Referenced by draw(), getCheckBox(), getW(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().

GLWLabel GLWCheckBoxText::label_ [protected]

Definition at line 53 of file GLWCheckBoxText.h.

Referenced by draw(), getLabel(), getW(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().


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