UISlider
class UISlider :
UIBufferedElement ,
IParameterListener {
nothrow @nogc
L16 trailDepth;
nothrow @nogc
RGBA unlitTrailDiffuse;
nothrow @nogc
RGBA litTrailDiffuse;
nothrow @nogc
float trailWidth;
nothrow @nogc
RGBA litTrailDiffuseAlt;
nothrow @nogc
bool hasAlternateTrail;
nothrow @nogc
float trailBase;
nothrow @nogc
HandleStyle handleStyle;
nothrow @nogc
float handleHeightRatio;
nothrow @nogc
float handleWidthRatio;
nothrow @nogc
RGBA handleDiffuse;
nothrow @nogc
RGBA handleMaterial;
protected nothrow @nogc
float _pushedAnimation;
protected nothrow @nogc
float _mousePosOnLast0Cross;
protected nothrow @nogc
float _mousePosOnLast1Cross;
protected nothrow @nogc
float _draggingDebt;
}
A destructor is present on this object, but not explicitly documented in the source.
- sensivity
float sensivity()
- sensivity
float sensivity(float sensivity)
- _param
Parameter _param;
The parameter this switch is linked with.
- _sensivity
float _sensivity;
Sensivity: given a mouse movement in 100th of the height of the knob, how much should the normalized parameter change.
- 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.
- 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