Main Page | Class Hierarchy | Class List | File List | Class Members

aedSlider Class Reference

#include <aedSlider.h>

Inheritance diagram for aedSlider:

List of all members.

Public Member Functions

 aedSlider (aedOrientation orient=AED_VERTICAL)
virtual int wm_update (Uint32 msdelta)
virtual int wm_lbuttonup (Uint16 x, Uint16 y)
virtual int wm_lbuttondown (Uint16 x, Uint16 y)
virtual void render (void)
void setValue (Uint32 val)
Uint32 getValue () const
void setRange (Uint32 minval, Uint32 maxval)
void getRange (Uint32 *minval, Uint32 *maxval) const
Uint32 getBigChange () const
void setBigChange (Uint32 bigchange)
aedOrientation getOrientation () const
void setOrientation (aedOrientation orient)
void incrementValue (bool bigChange=false)
void decrementValue (bool bigChange=false)
aedRect getElevatorRect ()

Protected Attributes

bool m_Dragging

Detailed Description

A very simple base class containing common code for sliders and scrollbars.


Constructor & Destructor Documentation

aedSlider::aedSlider aedOrientation  orient = AED_VERTICAL  ) 
 

The constructor, creates a new slider.

Parameters:
orient the slider's orientation


Member Function Documentation

void aedSlider::decrementValue bool  bigChange = false  ) 
 

Decrement slider's value.

Parameters:
bigChange if true, make a big change

aedOrientation aedSlider::getOrientation  )  const [inline]
 

Return slider's orientation.

void aedSlider::getRange Uint32 *  minval,
Uint32 *  maxval
const [inline]
 

Get slider's range. Store minimum and maximum values into variables pointed to by minval and maxval, respectively. Any of the two pointers can be NULL to indicate that the caller is not interested in that value.

Uint32 aedSlider::getValue  )  const [inline]
 

Get slider's value.

void aedSlider::incrementValue bool  bigChange = false  ) 
 

Increment slider's value.

Parameters:
bigChange if true, make a big change

void aedSlider::setBigChange Uint32  bigchange  ) 
 

Set the amount of a "big change".

void aedSlider::setOrientation aedOrientation  orient  )  [inline]
 

Change slider's orientation.

Parameters:
orient new orientation, either AED_HORIZONTAL or AED_VERTICAL

void aedSlider::setRange Uint32  minval,
Uint32  maxval
 

Set slider's range.

Parameters:
minval the minimum value of the new range
maxval the maximum value of the new range

void aedSlider::setValue Uint32  val  ) 
 

Set slider's value.


The documentation for this class was generated from the following file:
Generated on Mon Mar 1 19:56:19 2004 for aedGUI by doxygen 1.3.6