29#ifndef _CEGUISlider_h_
30#define _CEGUISlider_h_
38# pragma warning(disable : 4251)
389 void addSliderProperties(
void);
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
EventArgs based class that is used for objects passed to input event handlers concerning mouse input.
Definition: InputEvent.h:281
Base class for ItemEntry window renderer objects.
Definition: widgets/Slider.h:51
virtual void updateThumb(void)=0
update the size and location of the thumb to properly represent the current state of the slider
virtual float getValueFromThumb(void) const =0
return value that best represents current slider value given the current location of the thumb.
SliderWindowRenderer(const String &name)
Constructor.
virtual float getAdjustDirectionFromPoint(const Vector2f &pt) const =0
Given window location pt, return a value indicating what change should be made to the slider.
Base class for Slider widgets.
Definition: widgets/Slider.h:99
virtual void updateThumb(void)
update the size and location of the thumb to properly represent the current state of the slider
float getMaxValue(void) const
return the maximum value set for this widget
Definition: widgets/Slider.h:149
static const String ThumbName
Widget name for the thumb component.
Definition: widgets/Slider.h:127
bool handleThumbMoved(const EventArgs &e)
update the size and location of the thumb to properly represent the current state of the slider
bool handleThumbTrackEnded(const EventArgs &e)
handler function for when thumb tracking begins
virtual float getAdjustDirectionFromPoint(const Vector2f &pt) const
Given window location pt, return a value indicating what change should be made to the slider.
virtual void initialiseComponents(void)
Initialises the Window based object ready for use.
Slider(const String &type, const String &name)
Slider base class constructor.
virtual ~Slider(void)
Slider base class destructor.
static const String WidgetTypeName
Window factory name.
Definition: widgets/Slider.h:102
static const String EventNamespace
Namespace for global events.
Definition: widgets/Slider.h:101
virtual void onThumbTrackEnded(WindowEventArgs &e)
Handler triggered when the slider thumb is released.
static const String EventValueChanged
Definition: widgets/Slider.h:111
static const String EventThumbTrackEnded
Definition: widgets/Slider.h:122
float d_maxValue
slider maximum value (minimum is fixed at 0)
Definition: widgets/Slider.h:381
float getClickStep(void) const
return the current click step setting for the slider.
Definition: widgets/Slider.h:162
virtual void onThumbTrackStarted(WindowEventArgs &e)
Handler triggered when the user begins to drag the slider thumb.
virtual float getValueFromThumb(void) const
return value that best represents current slider value given the current location of the thumb.
float d_step
amount to adjust slider by when clicked (and not dragged).
Definition: widgets/Slider.h:382
void setClickStep(float step)
set the current click step setting for the slider.
Definition: widgets/Slider.h:233
virtual bool validateWindowRenderer(const WindowRenderer *renderer) const
Function used in checking if a WindowRenderer is valid for this window.
Thumb * getThumb() const
Return a pointer to the Thumb component widget for this Slider.
void setMaxValue(float maxVal)
set the maximum value for the slider. Note that the minimum value is fixed at 0.
bool handleThumbTrackStarted(const EventArgs &e)
handler function for when thumb tracking begins
virtual void onValueChanged(WindowEventArgs &e)
Handler triggered when the slider value changes.
float getCurrentValue(void) const
return the current slider value.
Definition: widgets/Slider.h:139
static const String EventThumbTrackStarted
Definition: widgets/Slider.h:117
virtual void onMouseWheel(MouseEventArgs &e)
Handler called when the mouse wheel (z-axis) position changes within this window's area.
float d_value
current slider value
Definition: widgets/Slider.h:380
virtual void onMouseButtonDown(MouseEventArgs &e)
Handler called when a mouse button has been depressed within this window's area.
void setCurrentValue(float value)
set the current slider value.
String class used within the GUI system.
Definition: String.h:64
Base class for Thumb widget.
Definition: Thumb.h:56
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:252
Base-class for the assignable WindowRenderer object.
Definition: WindowRenderer.h:52
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1