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