#include <SpinWheel.h>
Inheritance diagram for OglGui::SpinWheel:
Public Member Functions | |
SpinWheel (Window *parent, int x, int y, int w, int h, int minVal, int maxVal, int val) | |
SpinWheel (Window *parent, int w, int h, int minVal, int maxVal, int val) | |
SpinWheel (Window *parent, int x, int y, int w, int h, float minVal, float maxVal, float val) | |
SpinWheel (Window *parent, int w, int h, float minVal, float maxVal, float val) | |
void | SetSpinWheelListener (SpinWheelListener *l, void *userData=0) |
void | SetSpinWheelListener (SpinWheelListener *l, int userData) |
void | CenterValStr (int dX, int dY) const |
virtual void | DrawWheel () |
virtual void | DisplayFunc () |
void | PropagateScrolling () |
virtual void | MouseFunc (INT msg, INT but, INT state, INT x, INT y) |
virtual void | KeyboardFunc (INT c, INT state) |
bool | IsPressed () const |
float | GetValue () const |
void | SetValue (float val) |
void | SetMinimum (float min) |
float | GetMinimum () const |
void | SetMaximum (float max) |
float | GetMaximum () const |
void | SetDrawLineEtched (bool mode) |
bool | GetDrawLineEtched () const |
void | SetIncrement (float inc) |
float | GetIncrement () const |
void | SetPageIncrement (float inc) |
float | GetPageIncrement () const |
void | SetLineDistance (int len) |
int | GetLineDistance () const |
void | SetShowValInWheel (bool doShow=true) |
bool | GetShowValInWheel () const |
void | SetShowAsPercentage (bool doShow=true) |
bool | GetShowAsPercentage () const |
Protected Attributes | |
SpinWheelListener * | mSpinWheelListener |
void * | mSpinWheelListenerData |
float | mMinVal |
float | mMaxVal |
float | mVal |
float | mIncrement |
float | mPageIncrement |
bool | mDownDir |
bool | mIsPressed |
bool | mDrawLineEtched |
int | mLineDistance |
bool | mAsInt |
bool | mShowAsPercentage |
bool | mShowValInWheel |
Private Member Functions | |
void | Init (bool asInt, float minVal, float maxVal, float val) |
Definition at line 12 of file SpinWheel.h.