GuiSliderCtrl

Engine/source/gui/controls/guiSliderCtrl.h

A slider control that selects out of a floating-point value range.

More...

Protected Types

enum
_Anonymous_ {
  SliderLineLeft = 0
  SliderLineCenter 
  SliderLineRight 
  SliderButtonNormal 
  SliderButtonHighlight 
  NumBitmaps 
}

Public Types

Parent 

Protected Functions

_updateThumb(F32 value, bool snap, bool onWake, bool doCallback)

Protected Static Functions

bool
_setValue(void * object, const char * index, const char * data)

Public Functions

DECLARE_CATEGORY("Gui Values" )
onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

bool

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
resize(const Point2I & newPosition, const Point2I & newExtent)

Changes the size and/or position of this control.

setActive(bool value)

Sets the status of this control as active and responding or inactive.

setScriptValue(const char * value)

Sets the value of the variable bound to this object.

setValue(F32 val, bool doCallback)

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)

Public Static Functions

initPersistFields()