29 #ifndef _CEGUISlider_h_
30 #define _CEGUISlider_h_
33 #include "../Window.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
63 virtual void updateThumb(
void) = 0;
72 virtual float getValueFromThumb(
void)
const = 0;
87 virtual float getAdjustDirectionFromPoint(
const Vector2f& pt)
const = 0;
175 Thumb* getThumb()
const;
191 virtual void initialiseComponents(
void);
204 void setMaxValue(
float maxVal);
217 void setCurrentValue(
float value);
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_
void setClickStep(float step)
set the current click step setting for the slider.
Definition: widgets/Slider.h:233
static const String EventThumbTrackEnded
Definition: widgets/Slider.h:122
static const String EventNamespace
Namespace for global events.
Definition: widgets/Slider.h:101
float getMaxValue(void) const
return the maximum value set for this widget
Definition: widgets/Slider.h:149
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
float d_value
current slider value
Definition: widgets/Slider.h:380
static const String ThumbName
Widget name for the thumb component.
Definition: widgets/Slider.h:127
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
float getClickStep(void) const
return the current click step setting for the slider.
Definition: widgets/Slider.h:162
float d_maxValue
slider maximum value (minimum is fixed at 0)
Definition: widgets/Slider.h:381
Base class for Thumb widget.
Definition: Thumb.h:55
Base-class for the assignable WindowRenderer object.
Definition: WindowRenderer.h:50
Base class for ItemEntry window renderer objects.
Definition: widgets/Slider.h:50
static const String EventValueChanged
Definition: widgets/Slider.h:111
Base class for Slider widgets.
Definition: widgets/Slider.h:98
float d_step
amount to adjust slider by when clicked (and not dragged).
Definition: widgets/Slider.h:382
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
float getCurrentValue(void) const
return the current slider value.
Definition: widgets/Slider.h:139
static const String WidgetTypeName
Window factory name.
Definition: widgets/Slider.h:102
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: InputEvent.h:280
static const String EventThumbTrackStarted
Definition: widgets/Slider.h:117
String class used within the GUI system.
Definition: String.h:62