SlidingEncoder

Implements a sliding encoder for various data-entry purposes.

Constructors

this
this(string source, Box position, Bitmap8Bit slider, Bitmap8Bit background, Box track, uint _maxValue)

Creates an instance of a sliding encoder

Members

Functions

draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
passMCE
void passMCE(MouseEventCommons mec, MouseClickEvent mce)
Undocumented in source. Be warned that the author may not have intended to support it.
passMME
void passMME(MouseEventCommons mec, MouseMotionEvent mme)
Undocumented in source. Be warned that the author may not have intended to support it.
passMWE
void passMWE(MouseEventCommons mec, MouseWheelEvent mwe)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

maxValue
uint maxValue [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxValue
uint maxValue [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
uint value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
uint value [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_maxValue
uint _maxValue;

The maximum value of this encoder.

_value
uint _value;

The current value of this encoder.

background
Bitmap8Bit background;

The bitmap for the background.

onValueChange
EventDeleg onValueChange;

Called when the value is changed.

slider
Bitmap8Bit slider;

The bitmap for the slider.

track
Box track;

The track, where the slider resides.

trackLength
uint trackLength;

The total usable length of the encoder in pixels.

valRatio
double valRatio;

Pixel-to-value ratio of the encoder.

Meta