GLWScrollW Class Reference

#include <GLWScrollW.h>

Inheritance diagram for GLWScrollW:

GLWidget GLWButtonI GLWScrollButtonI MetaClass GLWScrollWBackwards

List of all members.

Public Member Functions

 GLWScrollW (float x=0.0f, float y=0.0f, float h=0.0f, int min=0, int max=0, int see=1, GLWScrollWI *handler=0)
virtual ~GLWScrollW ()
virtual void setHandler (GLWScrollWI *handler=0)
void setMin (int min)
void setMax (int max)
void setSee (int see)
virtual void setCurrent (int c)
virtual void setX (float x)
virtual void setY (float y)
virtual void setW (float w)
virtual void setH (float h)
virtual int getCurrent ()
int getMin ()
int getMax ()
int getSee ()
virtual void draw ()
virtual void simulate (float frameTime)
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 void buttonDown (unsigned int id)
virtual void mouseWheel (float x, float y, float z, bool &skipRest)
virtual void startDrag (unsigned int id)
virtual void buttonDrag (unsigned int id, float x, float y)
 REGISTER_CLASS_HEADER (GLWScrollW)

Protected Attributes

GLWScrollWIhandler_
GLWButton topButton_
GLWButton bottomButton_
GLWButton backButtonTop_
GLWButton backButtonBot_
GLWScrollButton middleButton_
int min_
int max_
int see_
int current_
int dragCurrent_


Detailed Description

Definition at line 34 of file GLWScrollW.h.


Constructor & Destructor Documentation

GLWScrollW::GLWScrollW ( float  x = 0.0f,
float  y = 0.0f,
float  h = 0.0f,
int  min = 0,
int  max = 0,
int  see = 1,
GLWScrollWI handler = 0 
)

Definition at line 31 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, middleButton_, GLWButton::setHandler(), GLWButton::setRepeatMode(), GLWScrollButton::setScrollHandler(), and topButton_.

GLWScrollW::~GLWScrollW (  )  [virtual]

Definition at line 50 of file GLWScrollW.cpp.


Member Function Documentation

virtual void GLWScrollW::setHandler ( GLWScrollWI handler = 0  )  [inline, virtual]

Definition at line 46 of file GLWScrollW.h.

References handler_.

Referenced by GLWScrollPanel::GLWScrollPanel().

void GLWScrollW::setMin ( int  min  )  [inline]

Definition at line 47 of file GLWScrollW.h.

References min_.

void GLWScrollW::setMax ( int  max  )  [inline]

Definition at line 48 of file GLWScrollW.h.

References max_.

Referenced by GLWIconList::addItem(), GLWScrollPanel::calculateVisible(), GLWFileView::GLWFileView(), GLWListView::GLWListView(), GLWIconTable::setItemCount(), GLWListView::setScroll(), and GLWTankViewer::setTankModels().

void GLWScrollW::setSee ( int  see  )  [inline]

Definition at line 49 of file GLWScrollW.h.

References see_.

Referenced by GLWScrollPanel::calculateVisible(), GLWFileView::GLWFileView(), GLWListView::GLWListView(), and GLWListView::setScroll().

void GLWScrollW::setCurrent ( int  c  )  [virtual]

Reimplemented in GLWScrollWBackwards.

Definition at line 226 of file GLWScrollW.cpp.

References current_, GLWidget::getId(), handler_, max_, min_, GLWScrollWI::positionChange(), and see_.

Referenced by buttonDrag(), GLWScrollPanel::clear(), GLWListView::clear(), GLWListView::draw(), GLWListView::endPosition(), GLWFileView::GLWFileView(), GLWListView::GLWListView(), GLWTankViewer::mouseWheel(), mouseWheel(), GLWScrollPanel::mouseWheel(), GLWListView::mouseWheel(), GLWFileView::mouseWheel(), BuyAccessoryDialog::playerRefreshKeepPos(), GLWScrollWBackwards::setCurrent(), GLWListView::setScroll(), GLWTankViewer::setTankModels(), and GLWTankViewer::setTeam().

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

Reimplemented from GLWidget.

Definition at line 55 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, middleButton_, GLWidget::setX(), topButton_, and GLWidget::x_.

Referenced by GLWListView::setW(), and GLWListView::setX().

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

Reimplemented from GLWidget.

Definition at line 66 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, GLWidget::h_, middleButton_, GLWidget::setY(), topButton_, GLWidget::w_, and GLWidget::y_.

Referenced by GLWListView::setY().

void GLWScrollW::setW ( float  w  )  [virtual]

Reimplemented from GLWidget.

Definition at line 77 of file GLWScrollW.cpp.

References GLWidget::setW().

void GLWScrollW::setH ( float  h  )  [virtual]

Reimplemented from GLWidget.

Definition at line 82 of file GLWScrollW.cpp.

References GLWidget::h_, GLWidget::setH(), GLWidget::setY(), topButton_, GLWidget::w_, and GLWidget::y_.

Referenced by GLWScrollPanel::setH(), and GLWListView::setH().

virtual int GLWScrollW::getCurrent (  )  [inline, virtual]

Reimplemented in GLWScrollWBackwards.

Definition at line 57 of file GLWScrollW.h.

References current_.

Referenced by GLWTankViewer::draw(), GLWListView::draw(), GLWFileView::draw(), GLWScrollWBackwards::getCurrent(), GLWTankViewer::mouseDown(), GLWTankViewer::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWListView::mouseWheel(), GLWFileView::mouseWheel(), BuyAccessoryDialog::playerRefreshKeepPos(), and GLWTankViewer::setTeam().

int GLWScrollW::getMin (  )  [inline]

Definition at line 58 of file GLWScrollW.h.

References min_.

Referenced by GLWListView::endPosition().

int GLWScrollW::getMax (  )  [inline]

Definition at line 59 of file GLWScrollW.h.

References max_.

Referenced by GLWListView::draw(), GLWFileView::draw(), GLWScrollWBackwards::getCurrent(), GLWFileView::GLWFileView(), GLWListView::GLWListView(), GLWScrollWBackwards::setCurrent(), and GLWListView::setScroll().

int GLWScrollW::getSee (  )  [inline]

Definition at line 60 of file GLWScrollW.h.

References see_.

Referenced by GLWListView::draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWScrollWBackwards::getCurrent(), GLWScrollWBackwards::setCurrent(), and GLWListView::setScroll().

void GLWScrollW::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 89 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, current_, GLWButton::draw(), GLWidget::drawShadedRoundBox(), GLWButton::getPressed(), GL_LINE_LOOP, GL_TRIANGLES, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, max_, middleButton_, min_, see_, GLWidget::setH(), GLWidget::setY(), topButton_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWTankViewer::draw(), GLWScrollPanel::draw(), GLWListView::draw(), GLWIconTable::draw(), GLWIconList::draw(), and GLWFileView::draw().

void GLWScrollW::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 153 of file GLWScrollW.cpp.

References bottomButton_, GLWButton::simulate(), and topButton_.

Referenced by GLWTankViewer::simulate(), GLWScrollPanel::simulate(), GLWListView::simulate(), GLWIconTable::simulate(), GLWIconList::simulate(), and GLWFileView::simulate().

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

Reimplemented from GLWidget.

Definition at line 159 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, middleButton_, GLWScrollButton::mouseDown(), GLWButton::mouseDown(), and topButton_.

Referenced by GLWTankViewer::mouseDown(), GLWScrollPanel::mouseDown(), GLWListView::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), and GLWFileView::mouseDown().

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

Reimplemented from GLWidget.

Definition at line 176 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, middleButton_, GLWButton::mouseUp(), and topButton_.

Referenced by GLWTankViewer::mouseUp(), GLWScrollPanel::mouseUp(), GLWListView::mouseUp(), GLWIconTable::mouseUp(), GLWIconList::mouseUp(), and GLWFileView::mouseUp().

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

Reimplemented from GLWidget.

Definition at line 193 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, middleButton_, GLWScrollButton::mouseDrag(), GLWButton::mouseDrag(), and topButton_.

Referenced by GLWTankViewer::mouseDrag(), GLWScrollPanel::mouseDrag(), GLWListView::mouseDrag(), GLWIconTable::mouseDrag(), GLWIconList::mouseDrag(), and GLWFileView::mouseDrag().

void GLWScrollW::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 263 of file GLWScrollW.cpp.

References backButtonBot_, backButtonTop_, bottomButton_, current_, GLWidget::getId(), handler_, max_, min_, GLWScrollWI::positionChange(), see_, and topButton_.

void GLWScrollW::mouseWheel ( float  x,
float  y,
float  z,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Reimplemented in GLWScrollWBackwards.

Definition at line 210 of file GLWScrollW.cpp.

References current_, GLWidget::h_, GLWidget::inBox(), setCurrent(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWScrollWBackwards::mouseWheel().

void GLWScrollW::startDrag ( unsigned int  id  )  [virtual]

Implements GLWScrollButtonI.

Definition at line 221 of file GLWScrollW.cpp.

References current_, and dragCurrent_.

void GLWScrollW::buttonDrag ( unsigned int  id,
float  x,
float  y 
) [virtual]

Implements GLWScrollButtonI.

Definition at line 237 of file GLWScrollW.cpp.

References current_, dragCurrent_, GLWidget::h_, int(), max_, min_, see_, setCurrent(), and GLWidget::w_.

GLWScrollW::REGISTER_CLASS_HEADER ( GLWScrollW   ) 


Member Data Documentation

GLWScrollWI* GLWScrollW::handler_ [protected]

Definition at line 75 of file GLWScrollW.h.

Referenced by buttonDown(), setCurrent(), and setHandler().

GLWButton GLWScrollW::topButton_ [protected]

Definition at line 76 of file GLWScrollW.h.

Referenced by buttonDown(), draw(), GLWScrollW(), mouseDown(), mouseDrag(), mouseUp(), setH(), setX(), setY(), and simulate().

GLWButton GLWScrollW::bottomButton_ [protected]

Definition at line 77 of file GLWScrollW.h.

Referenced by buttonDown(), draw(), GLWScrollW(), mouseDown(), mouseDrag(), mouseUp(), setX(), setY(), and simulate().

GLWButton GLWScrollW::backButtonTop_ [protected]

Definition at line 78 of file GLWScrollW.h.

Referenced by buttonDown(), draw(), GLWScrollW(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().

GLWButton GLWScrollW::backButtonBot_ [protected]

Definition at line 79 of file GLWScrollW.h.

Referenced by buttonDown(), draw(), GLWScrollW(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().

GLWScrollButton GLWScrollW::middleButton_ [protected]

Definition at line 80 of file GLWScrollW.h.

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

int GLWScrollW::min_ [protected]

Definition at line 81 of file GLWScrollW.h.

Referenced by buttonDown(), buttonDrag(), draw(), getMin(), setCurrent(), and setMin().

int GLWScrollW::max_ [protected]

Definition at line 81 of file GLWScrollW.h.

Referenced by buttonDown(), buttonDrag(), draw(), getMax(), setCurrent(), and setMax().

int GLWScrollW::see_ [protected]

Definition at line 81 of file GLWScrollW.h.

Referenced by buttonDown(), buttonDrag(), draw(), getSee(), setCurrent(), and setSee().

int GLWScrollW::current_ [protected]

Definition at line 82 of file GLWScrollW.h.

Referenced by buttonDown(), buttonDrag(), draw(), getCurrent(), mouseWheel(), setCurrent(), and startDrag().

int GLWScrollW::dragCurrent_ [protected]

Definition at line 83 of file GLWScrollW.h.

Referenced by buttonDrag(), and startDrag().


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