UISlider

Undocumented in source.

Constructors

this
this(UIContext context, Parameter param)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clearCrosspoints
void clearCrosspoints()
Undocumented in source. Be warned that the author may not have intended to support it.
onAnimate
void onAnimate(double dt, double time)
Undocumented in source. Be warned that the author may not have intended to support it.
onBeginDrag
void onBeginDrag()
Undocumented in source. Be warned that the author may not have intended to support it.
onBeginParameterEdit
void onBeginParameterEdit(Parameter sender)
Undocumented in source. Be warned that the author may not have intended to support it.
onDrawBuffered
void onDrawBuffered(ImageRef!RGBA diffuseMap, ImageRef!L16 depthMap, ImageRef!RGBA materialMap, ImageRef!L8 diffuseOpacity, ImageRef!L8 depthOpacity, ImageRef!L8 materialOpacity)
Undocumented in source. Be warned that the author may not have intended to support it.
onEndParameterEdit
void onEndParameterEdit(Parameter sender)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseClick
bool onMouseClick(int x, int y, int button, bool isDoubleClick, MouseState mstate)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDrag
void onMouseDrag(int x, int y, int dx, int dy, MouseState mstate)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEnter
void onMouseEnter()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseExit
void onMouseExit()
Undocumented in source. Be warned that the author may not have intended to support it.
onParameterChanged
void onParameterChanged(Parameter sender)
Undocumented in source. Be warned that the author may not have intended to support it.
onStopDrag
void onStopDrag()
Undocumented in source. Be warned that the author may not have intended to support it.
sensivity
float sensivity()
sensivity
float sensivity(float sensivity)

Sets sensivity.

Variables

_draggingDebt
float _draggingDebt;
Undocumented in source.
_mousePosOnLast0Cross
float _mousePosOnLast0Cross;
Undocumented in source.
_mousePosOnLast1Cross
float _mousePosOnLast1Cross;
Undocumented in source.
_param
Parameter _param;

The parameter this switch is linked with.

_pushedAnimation
float _pushedAnimation;
Undocumented in source.
_sensivity
float _sensivity;

Sensivity: given a mouse movement in 100th of the height of the knob, how much should the normalized parameter change.

handleDiffuse
RGBA handleDiffuse;
Undocumented in source.
handleHeightRatio
float handleHeightRatio;
Undocumented in source.
handleMaterial
RGBA handleMaterial;
Undocumented in source.
handleStyle
HandleStyle handleStyle;
Undocumented in source.
handleWidthRatio
float handleWidthRatio;
Undocumented in source.
litTrailDiffuse
RGBA litTrailDiffuse;
Undocumented in source.
trailDepth
L16 trailDepth;
Undocumented in source.
trailWidth
float trailWidth;
Undocumented in source.
unlitTrailDiffuse
RGBA unlitTrailDiffuse;
Undocumented in source.

Inherited Members

From UIBufferedElement

~this
~this()
Undocumented in source.
setDirty
void setDirty(box2i rect)
Undocumented in source. Be warned that the author may not have intended to support it.
setDirtyWhole
void setDirtyWhole()
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void onDraw(ImageRef!RGBA diffuseMap, ImageRef!L16 depthMap, ImageRef!RGBA materialMap, box2i[] dirtyRects)
Undocumented in source. Be warned that the author may not have intended to support it.
onDrawBuffered
void onDrawBuffered(ImageRef!RGBA diffuseMap, ImageRef!L16 depthMap, ImageRef!RGBA materialMap, ImageRef!L8 diffuseOpacity, ImageRef!L8 depthOpacity, ImageRef!L8 materialOpacity)

Redraws the whole widget without consideration for drawing only in dirty rects. That is a lot of maps to fill. On the plus side, this happen quite infrequently.

From IParameterListener

onParameterChanged
void onParameterChanged(Parameter sender)

Called when a parameter value was changed You'll probably want to call setDirtyWhole() or setDirty() in it to make the graphics respond to host changing a parameter.

onBeginParameterEdit
void onBeginParameterEdit(Parameter sender)

Called when a parameter value start being changed due to an UI element

onEndParameterEdit
void onEndParameterEdit(Parameter sender)

Called when a parameter value stops being changed

Meta