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;
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;
127 static const String ThumbName;
139 float getCurrentValue(
void)
const {
return d_value;}
149 float getMaxValue(
void)
const {
return d_maxValue;}
162 float getClickStep(
void)
const {
return d_step;}
175 Thumb* getThumb()
const;
191 virtual void initialiseComponents(
void);
204 void setMaxValue(
float maxVal);
217 void setCurrentValue(
float value);
233 void setClickStep(
float step) {d_step = step;}
243 Slider(
const String& type,
const String& name);
250 virtual ~Slider(
void);
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:302
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:273
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:171
Base class for Slider widgets.
Definition: widgets/Slider.h:120
Base-class for the assignable WindowRenderer object.
Definition: WindowRenderer.h:72
String class used within the GUI system.
Definition: String.h:83
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:69