SourceWaveFileWidget

Undocumented in source.
class SourceWaveFileWidget : WaveFileWidget {}

Constructors

this
this(Mixer mixer)
Undocumented in source.

Inherited Members

From WaveFileWidget

_mixer
Mixer _mixer;
Undocumented in source.
_player
Mp3Player _player;
Undocumented in source.
_file
WaveFile _file;
Undocumented in source.
_hScroll
ScrollBar _hScroll;
Undocumented in source.
_hruler
HRuler _hruler;
Undocumented in source.
_clientRect
Rect _clientRect;
Undocumented in source.
_hscale
int _hscale;
Undocumented in source.
_vscale
float _vscale;
Undocumented in source.
_scrollPos
int _scrollPos;
Undocumented in source.
_cursorPos
int _cursorPos;
Undocumented in source.
_selStart
int _selStart;
Undocumented in source.
_selEnd
int _selEnd;
Undocumented in source.
_zoomCache
MinMax[] _zoomCache;
Undocumented in source.
_zoomCacheScale
int _zoomCacheScale;
Undocumented in source.
_playTimer
ulong _playTimer;
Undocumented in source.
~this
~this()
Undocumented in source.
file
WaveFile file [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
file
WaveFile file [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
player
Mp3Player player [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayData
float[] getDisplayData()

get data to display - override to show some other data than wave (e.g. to show excitation)

getExtraViewsHeight
int getExtraViewsHeight(int parentHeight)

override to allow extra views

layoutExtraViews
void layoutExtraViews(Rect rc)

override to allow extra views

drawExtraViews
void drawExtraViews(DrawBuf buf)

override to allow extra views

updateZoomCache
void updateZoomCache()
Undocumented in source. Be warned that the author may not have intended to support it.
updateView
void updateView()
Undocumented in source. Be warned that the author may not have intended to support it.
zoomFull
void zoomFull()
Undocumented in source. Be warned that the author may not have intended to support it.
visibleYRange
MinMax visibleYRange()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyEvent
bool onKeyEvent(KeyEvent event)

process key event, return true if event is processed.

openSampleFile
void openSampleFile(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
openSampleFile
void openSampleFile()
Undocumented in source. Be warned that the author may not have intended to support it.
handleAction
bool handleAction(Action a)

override to handle specific actions

getSelectionUpsampled
WaveFile getSelectionUpsampled()
Undocumented in source. Be warned that the author may not have intended to support it.
getSelectionWave
WaveFile getSelectionWave()
Undocumented in source. Be warned that the author may not have intended to support it.
ensureCursorVisible
void ensureCursorVisible()
Undocumented in source. Be warned that the author may not have intended to support it.
getPlayPosition
void getPlayPosition()

player position to screen

setPlayPosition
void setPlayPosition()

set cursor position to player position

onTimer
bool onTimer(ulong id)
Undocumented in source. Be warned that the author may not have intended to support it.
limitPosition
void limitPosition(int position)
Undocumented in source. Be warned that the author may not have intended to support it.
updateScrollBar
void updateScrollBar()
Undocumented in source. Be warned that the author may not have intended to support it.
onScrollEvent
bool onScrollEvent(AbstractSlider source, ScrollEvent event)

handle scroll event

measure
void measure(int parentWidth, int parentHeight)

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

layout
void layout(Rect rc)

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

getDisplayValuesNoCache
MinMax getDisplayValuesNoCache(int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayValues
MinMax getDisplayValues(int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayPos
bool getDisplayPos(int offset, int y0, int y1)
Undocumented in source. Be warned that the author may not have intended to support it.
setCursorPos
void setCursorPos(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
updateSelection
void updateSelection(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
updateHScale
void updateHScale(int newScale, int preserveX)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEvent
bool onMouseEvent(MouseEvent event)

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

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

Meta