30 #ifndef _CEGUISlider_h_
31 #define _CEGUISlider_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUISliderProperties.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
65 virtual void updateThumb(
void) = 0;
74 virtual float getValueFromThumb(
void)
const = 0;
89 virtual float getAdjustDirectionFromPoint(
const Point& pt)
const = 0;
177 Thumb* getThumb()
const;
193 virtual void initialiseComponents(
void);
206 void setMaxValue(
float maxVal);
219 void setCurrentValue(
float value);
263 virtual void updateThumb(
void);
273 virtual float getValueFromThumb(
void)
const;
289 virtual float getAdjustDirectionFromPoint(
const Point& pt)
const;
328 bool handleThumbMoved(
const EventArgs& e);
335 bool handleThumbTrackStarted(
const EventArgs& e);
342 bool handleThumbTrackEnded(
const EventArgs& e);
357 if (class_name==
"Slider")
return true;
365 return (name ==
"Slider");
419 void addSliderProperties(
void);
424 #if defined(_MSC_VER)
425 # pragma warning(pop)
428 #endif // end of guard _CEGUISlider_h_
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
void setClickStep(float step)
set the current click step setting for the slider.
Definition: CEGUISlider.h:235
static const String EventThumbTrackEnded
Definition: CEGUISlider.h:124
static const String EventNamespace
Namespace for global events.
Definition: CEGUISlider.h:103
float getMaxValue(void) const
return the maximum value set for this widget
Definition: CEGUISlider.h:151
float d_value
current slider value
Definition: CEGUISlider.h:403
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
float getClickStep(void) const
return the current click step setting for the slider.
Definition: CEGUISlider.h:164
Property to access the current value of the slider.
Definition: CEGUISliderProperties.h:58
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
float d_maxValue
slider maximum value (minimum is fixed at 0)
Definition: CEGUISlider.h:404
Base class for Thumb widget.
Definition: CEGUIThumb.h:56
Base-class for the assignable WindowRenderer object.
Definition: CEGUIWindowRenderer.h:51
Base class for ItemEntry window renderer objects.
Definition: CEGUISlider.h:52
Property to access the maximum value of the slider.
Definition: CEGUISliderProperties.h:83
virtual bool validateWindowRenderer(const String &name) const
Function used in checking if a WindowRenderer is valid for this window.
Definition: CEGUISlider.h:363
static const String EventValueChanged
Definition: CEGUISlider.h:113
Base class for Slider widgets.
Definition: CEGUISlider.h:100
float d_step
amount to adjust slider by when clicked (and not dragged).
Definition: CEGUISlider.h:405
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
float getCurrentValue(void) const
return the current slider value.
Definition: CEGUISlider.h:141
static const String WidgetTypeName
Window factory name.
Definition: CEGUISlider.h:104
Property to access the click-step size for the slider.
Definition: CEGUISliderProperties.h:108
static const String ThumbNameSuffix
Widget name suffix for the thumb component.
Definition: CEGUISlider.h:129
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: CEGUIInputEvent.h:274
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUISlider.h:355
static const String EventThumbTrackStarted
Definition: CEGUISlider.h:119
String class used within the GUI system.
Definition: CEGUIString.h:57