NoteRangeWidget

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

handleRangeChange
void handleRangeChange(int start, int end)
Undocumented in source. Be warned that the author may not have intended to support it.
layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

noteByPoint
int noteByPoint(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

onMouseEvent
bool onMouseEvent(MouseEvent event)

process mouse event; return true if event is processed by widget.

setPitch
void setPitch(double freq)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

rangeEnd
int rangeEnd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rangeStart
int rangeStart [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_currentPitch
double _currentPitch;
Undocumented in source.
_keyWidth
int _keyWidth;
Undocumented in source.
_keys
int _keys;
Undocumented in source.
_maxNote
int _maxNote;
Undocumented in source.
_minNote
int _minNote;
Undocumented in source.
_rangeEnd
int _rangeEnd;
Undocumented in source.
_rangeStart
int _rangeStart;
Undocumented in source.
onNoteRangeChange
Signal!NoteRangeChangeHandler onNoteRangeChange;
Undocumented in source.

Meta