GuiSliderCtrl
Engine/source/gui/controls/guiSliderCtrl.h
A slider control that selects out of a floating-point value range.
Callbacks
DECLARE_CALLBACK(void , onMouseDragged , () )
Protected Types
_Anonymous_ { SliderLineLeft = 0 SliderLineCenter SliderLineRight SliderButtonNormal SliderButtonHighlight NumBitmaps }
Public Types
Parent
Protected Attributes
bool
bool
bool
bool
bool
bool
bool
bool
Protected Functions
_getThumbValue(const GuiEvent & event)
_updateThumb(F32 value, bool snap, bool onWake, bool doCallback)
Public Functions
DECLARE_CATEGORY("Gui Values" )
bool
onMouseDown(const GuiEvent & event)
onMouseDragged(const GuiEvent & event)
bool
onMouseWheelDown(const GuiEvent & event)
bool
onMouseWheelUp(const GuiEvent & event)
bool
onWake()
Called when this object is asked to wake up returns true if it's actually awake at the end.
parentResized(const RectI & oldParentRect, const RectI & newParentRect)
Called when this objects parent is resized.
bool
setScriptValue(const char * value)
Sets the value of the variable bound to this object.
Public Static Functions
Detailed Description
A slider control that selects out of a floating-point value range.
Callbacks
DECLARE_CALLBACK(void , onMouseDragged , () )
Protected Types
@98
Enumerator
- SliderLineLeft = 0
- SliderLineCenter
- SliderLineRight
- SliderButtonNormal
- SliderButtonHighlight
- NumBitmaps
Public Types
typedef GuiControl Parent
Protected Attributes
RectI * mBitmapBounds
bool mDepressed
bool mDisplayValue
ColorI mFillBarColor
bool mHasTexture
F32 mIncAmount
bool mMouseDragged
bool mMouseOver
Point2F mRange
bool mRenderTicks
S32 mShiftExtent
S32 mShiftPoint
bool mSnap
RectI mThumb
Point2I mThumbSize
U32 mTicks
bool mUseFillBar
F32 mValue
Protected Functions
_getThumbValue(const GuiEvent & event)
_updateThumb(F32 value, bool snap, bool onWake, bool doCallback)
Protected Static Functions
_setValue(void * object, const char * index, const char * data)
Public Functions
GuiSliderCtrl()
DECLARE_CATEGORY("Gui Values" )
DECLARE_CONOBJECT(GuiSliderCtrl )
getRange()
getValue()
isThumbBeingDragged()
onMouseDown(const GuiEvent & event)
Reimplemented from: GuiControl
onMouseDragged(const GuiEvent & event)
Reimplemented from: GuiControl
onMouseEnter(const GuiEvent & )
Reimplemented from: GuiControl
onMouseLeave(const GuiEvent & )
Reimplemented from: GuiControl
onMouseUp(const GuiEvent & )
Reimplemented from: GuiControl
onMouseWheelDown(const GuiEvent & event)
Reimplemented from: GuiControl
onMouseWheelUp(const GuiEvent & event)
Reimplemented from: GuiControl
onRender(Point2I offset, const RectI & updateRect)
Reimplemented from: GuiControl
onWake()
Reimplemented from: GuiControl
parentResized(const RectI & oldParentRect, const RectI & newParentRect)
Reimplemented from: GuiControl
resize(const Point2I & newPosition, const Point2I & newExtent)
Reimplemented from: GuiControl
setActive(bool value)
Reimplemented from: GuiControl
setScriptValue(const char * value)
Reimplemented from: GuiControl
setValue(F32 val, bool doCallback)