GLWSlider Class Reference

#include <GLWSlider.h>

Inheritance diagram for GLWSlider:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWSlider (float x=0.0f, float y=0.0f, float w=0.0f, float min=0.0f, float max=100.0f, int marks=10)
virtual ~GLWSlider ()
void setHandler (GLWSliderI *handler)
float getCurrent ()
void setCurrent (float current)
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)
 REGISTER_CLASS_HEADER (GLWSlider)

Protected Attributes

GLWSliderIhandler_
float current_
float min_
float max_
int marks_


Detailed Description

Definition at line 32 of file GLWSlider.h.


Constructor & Destructor Documentation

GLWSlider::GLWSlider ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  min = 0.0f,
float  max = 100.0f,
int  marks = 10 
)

Definition at line 33 of file GLWSlider.cpp.

References min_, and setCurrent().

GLWSlider::~GLWSlider (  )  [virtual]

Definition at line 43 of file GLWSlider.cpp.


Member Function Documentation

void GLWSlider::setHandler ( GLWSliderI handler  )  [inline]

Definition at line 39 of file GLWSlider.h.

References handler_.

float GLWSlider::getCurrent (  )  [inline]

Definition at line 41 of file GLWSlider.h.

References current_.

Referenced by SoundDialog::buttonDown().

void GLWSlider::setCurrent ( float  current  ) 

Definition at line 80 of file GLWSlider.cpp.

References current_, GLWSliderI::currentChanged(), GLWidget::getId(), and handler_.

Referenced by SoundDialog::display(), GLWSlider(), and mouseDown().

void GLWSlider::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 48 of file GLWSlider.cpp.

References current_, GLWidget::drawBox(), GL_LINE_LOOP, GL_LINES, GL_QUADS, glBegin(), glColor3f(), glEnd(), glVertex2f(), marks_, max_, min_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

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

Reimplemented from GLWidget.

Definition at line 86 of file GLWSlider.cpp.

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

Referenced by mouseDrag().

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

Reimplemented from GLWidget.

Definition at line 100 of file GLWSlider.cpp.

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

Reimplemented from GLWidget.

Definition at line 104 of file GLWSlider.cpp.

References mouseDown().

GLWSlider::REGISTER_CLASS_HEADER ( GLWSlider   ) 


Member Data Documentation

GLWSliderI* GLWSlider::handler_ [protected]

Definition at line 52 of file GLWSlider.h.

Referenced by setCurrent(), and setHandler().

float GLWSlider::current_ [protected]

Definition at line 53 of file GLWSlider.h.

Referenced by draw(), getCurrent(), and setCurrent().

float GLWSlider::min_ [protected]

Definition at line 54 of file GLWSlider.h.

Referenced by draw(), GLWSlider(), and mouseDown().

float GLWSlider::max_ [protected]

Definition at line 54 of file GLWSlider.h.

Referenced by draw(), and mouseDown().

int GLWSlider::marks_ [protected]

Definition at line 55 of file GLWSlider.h.

Referenced by draw().


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