Crazy Eddie's GUI System
0.8.7
|
29 #ifndef _CEGUISlider_h_
30 #define _CEGUISlider_h_
33 #include "../Window.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
50 class CEGUIEXPORT SliderWindowRenderer :
public WindowRenderer
57 SliderWindowRenderer(
const String& name);
63 virtual void updateThumb(
void) = 0;
72 virtual float getValueFromThumb(
void)
const = 0;
87 virtual float getAdjustDirectionFromPoint(
const Vector2f& pt)
const = 0;
98 class CEGUIEXPORT Slider :
public Window
101 static const String EventNamespace;
102 static const String WidgetTypeName;
111 static const String EventValueChanged;
117 static const String EventThumbTrackStarted;
122 static const String EventThumbTrackEnded;
139 float getCurrentValue(
void)
const {
return d_value;}
149 float getMaxValue(
void)
const {
return d_maxValue;}
162 float getClickStep(
void)
const {
return d_step;}
191 virtual void initialiseComponents(
void);
204 void setMaxValue(
float maxVal);
217 void setCurrentValue(
float value);
233 void setClickStep(
float step) {d_step = step;}
261 virtual void updateThumb(
void);
271 virtual float getValueFromThumb(
void)
const;
287 virtual float getAdjustDirectionFromPoint(
const Vector2f& pt)
const;
326 bool handleThumbMoved(
const EventArgs& e);
333 bool handleThumbTrackStarted(
const EventArgs& e);
340 bool handleThumbTrackEnded(
const EventArgs& e);
343 virtual bool validateWindowRenderer(
const WindowRenderer* renderer)
const;
389 void addSliderProperties(
void);
394 #if defined(_MSC_VER)
395 # pragma warning(pop)
398 #endif // end of guard _CEGUISlider_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
EventArgs based class that is used for objects passed to input event handlers concerning mouse input.
Definition: InputEvent.h:306
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:277
Base class for Thumb widget.
Definition: Thumb.h:82
Base class for Slider widgets.
Definition: widgets/Slider.h:124
Base-class for the assignable WindowRenderer object.
Definition: WindowRenderer.h:76
String class used within the GUI system.
Definition: String.h:88
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:73