GLWCheckBox Class Reference

#include <GLWCheckBox.h>

Inheritance diagram for GLWCheckBox:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWCheckBox (float x=0.0f, float y=0.0f, bool startState=true)
virtual ~GLWCheckBox ()
virtual void draw ()
virtual void mouseDown (int button, float x, float y, bool &skipRest)
bool & getState ()
void setState (bool state)
void setHandler (GLWCheckBoxI *handler)
 REGISTER_CLASS_HEADER (GLWCheckBox)

Protected Attributes

bool state_
GLWCheckBoxIhandler_


Detailed Description

Definition at line 34 of file GLWCheckBox.h.


Constructor & Destructor Documentation

GLWCheckBox::GLWCheckBox ( float  x = 0.0f,
float  y = 0.0f,
bool  startState = true 
)

Definition at line 31 of file GLWCheckBox.cpp.

GLWCheckBox::~GLWCheckBox (  )  [virtual]

Definition at line 36 of file GLWCheckBox.cpp.


Member Function Documentation

void GLWCheckBox::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 45 of file GLWCheckBox.cpp.

References GLWidget::draw(), GLWidget::drawCircle(), GLWidget::drawShadedRoundBox(), GL_LINE_LOOP, GL_TRIANGLE_FAN, glBegin(), glColor3f(), glEnd(), glLineWidth(), glVertex2f(), GLWidget::h_, state_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWCheckBoxText::draw(), and SettingsSubSelectDialogListItem::draw().

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

Reimplemented from GLWidget.

Definition at line 65 of file GLWCheckBox.cpp.

References GLWidget::getId(), GLWidget::h_, handler_, GLWidget::mouseDown(), state_, GLWCheckBoxI::stateChange(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWCheckBoxText::mouseDown().

bool& GLWCheckBox::getState (  )  [inline]

Definition at line 44 of file GLWCheckBox.h.

References state_.

Referenced by TipDialog::buttonDown(), SoundDialog::buttonDown(), HUDDialog::buttonDown(), SettingsSubSelectDialogListItem::getSelected(), BuyAccessoryDialog::stateChange(), and GLWOptionEntry::updateEntries().

void GLWCheckBox::setState ( bool  state  )  [inline]

Definition at line 45 of file GLWCheckBox.h.

References state_.

Referenced by BuyAccessoryDialog::addAccessory(), TipDialog::display(), SoundDialog::display(), HUDDialog::display(), SettingsSubSelectDialogListItem::setSelected(), BuyAccessoryDialog::tabDown(), and GLWOptionEntry::updateControls().

void GLWCheckBox::setHandler ( GLWCheckBoxI handler  ) 

Definition at line 40 of file GLWCheckBox.cpp.

References handler_.

Referenced by BuyAccessoryDialog::addAccessory(), and BuyAccessoryDialog::BuyAccessoryDialog().

GLWCheckBox::REGISTER_CLASS_HEADER ( GLWCheckBox   ) 


Member Data Documentation

bool GLWCheckBox::state_ [protected]

Definition at line 50 of file GLWCheckBox.h.

Referenced by draw(), getState(), mouseDown(), and setState().

GLWCheckBoxI* GLWCheckBox::handler_ [protected]

Definition at line 51 of file GLWCheckBox.h.

Referenced by mouseDown(), and setHandler().


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