GLWScrollPanel Class Reference

#include <GLWScrollPanel.h>

Inheritance diagram for GLWScrollPanel:

GLWPanel GLWScrollWI GLWidget MetaClass GLWTab

List of all members.

Public Member Functions

 GLWScrollPanel (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWScrollPanel ()
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 mouseWheel (float x, float y, float z, bool &skipRest)
virtual void positionChange (unsigned int id, int current, int movement)
virtual void clear ()
virtual void setH (float h)
void calculateVisible ()
bool & getDrawScrollBar ()
GLWScrollWgetScrollBar ()
 REGISTER_CLASS_HEADER (GLWScrollPanel)

Protected Attributes

GLWScrollW scrollW_
bool drawScrollBar_
int maxSee_
float widgetHeight_


Detailed Description

Definition at line 27 of file GLWScrollPanel.h.


Constructor & Destructor Documentation

GLWScrollPanel::GLWScrollPanel ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 28 of file GLWScrollPanel.cpp.

References scrollW_, and GLWScrollW::setHandler().

GLWScrollPanel::~GLWScrollPanel (  )  [virtual]

Definition at line 35 of file GLWScrollPanel.cpp.


Member Function Documentation

void GLWScrollPanel::draw (  )  [virtual]

Reimplemented from GLWPanel.

Reimplemented in GLWTab.

Definition at line 90 of file GLWScrollPanel.cpp.

References calculateVisible(), GLState::DEPTH_OFF, GLWScrollW::draw(), GLWidget::draw(), drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), glPopMatrix(), glPushMatrix(), glTranslatef(), GLWidget::h_, scrollW_, GLState::TEXTURE_OFF, GLWidget::x_, and GLWidget::y_.

Referenced by GLWTab::drawSurround().

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

Reimplemented from GLWPanel.

Definition at line 47 of file GLWScrollPanel.cpp.

References scrollW_, and GLWScrollW::simulate().

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

Reimplemented from GLWPanel.

Reimplemented in GLWTab.

Definition at line 151 of file GLWScrollPanel.cpp.

References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseDown(), GLWScrollW::mouseDown(), scrollW_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWTab::mouseDown().

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

Reimplemented from GLWPanel.

Definition at line 120 of file GLWScrollPanel.cpp.

References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseUp(), GLWScrollW::mouseUp(), scrollW_, GLWidget::x_, and GLWidget::y_.

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

Reimplemented from GLWPanel.

Definition at line 182 of file GLWScrollPanel.cpp.

References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseDrag(), GLWScrollW::mouseDrag(), scrollW_, GLWidget::x_, and GLWidget::y_.

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

Reimplemented from GLWPanel.

Reimplemented in GLWTab.

Definition at line 213 of file GLWScrollPanel.cpp.

References drawScrollBar_, GLWScrollW::getCurrent(), GLWidget::h_, GLWidget::inBox(), GLWPanel::mouseWheel(), scrollW_, GLWScrollW::setCurrent(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by GLWTab::mouseWheel().

void GLWScrollPanel::positionChange ( unsigned int  id,
int  current,
int  movement 
) [virtual]

Implements GLWScrollWI.

Definition at line 231 of file GLWScrollPanel.cpp.

References GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::setY(), and widgetHeight_.

void GLWScrollPanel::clear (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 246 of file GLWScrollPanel.cpp.

References GLWPanel::clear(), scrollW_, and GLWScrollW::setCurrent().

Referenced by InventoryDialog::addPlayerWeapons(), and BuyAccessoryDialog::addPlayerWeapons().

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

Reimplemented from GLWidget.

Reimplemented in GLWTab.

Definition at line 40 of file GLWScrollPanel.cpp.

References GLWidget::h_, scrollW_, GLWScrollW::setH(), and GLWidget::setH().

Referenced by GLWTab::setH().

void GLWScrollPanel::calculateVisible (  ) 

Definition at line 52 of file GLWScrollPanel.cpp.

References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, maxSee_, scrollW_, GLWScrollW::setMax(), GLWScrollW::setSee(), and widgetHeight_.

Referenced by draw(), and BuyAccessoryDialog::stateChange().

bool& GLWScrollPanel::getDrawScrollBar (  )  [inline]

Definition at line 48 of file GLWScrollPanel.h.

References drawScrollBar_.

GLWScrollW& GLWScrollPanel::getScrollBar (  )  [inline]

Definition at line 49 of file GLWScrollPanel.h.

References scrollW_.

Referenced by BuyAccessoryDialog::playerRefreshKeepPos().

GLWScrollPanel::REGISTER_CLASS_HEADER ( GLWScrollPanel   ) 


Member Data Documentation

GLWScrollW GLWScrollPanel::scrollW_ [protected]

Definition at line 53 of file GLWScrollPanel.h.

Referenced by calculateVisible(), clear(), draw(), getScrollBar(), GLWScrollPanel(), mouseDown(), mouseDrag(), mouseUp(), mouseWheel(), setH(), and simulate().

bool GLWScrollPanel::drawScrollBar_ [protected]

Definition at line 54 of file GLWScrollPanel.h.

Referenced by calculateVisible(), draw(), getDrawScrollBar(), mouseDown(), mouseDrag(), mouseUp(), and mouseWheel().

int GLWScrollPanel::maxSee_ [protected]

Definition at line 55 of file GLWScrollPanel.h.

Referenced by calculateVisible().

float GLWScrollPanel::widgetHeight_ [protected]

Definition at line 56 of file GLWScrollPanel.h.

Referenced by calculateVisible(), and positionChange().


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