WaveFileWidget

Undocumented in source.
class WaveFileWidget : WidgetGroupDefaultDrawing {}

Constructors

this
this(Mixer mixer)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

drawExtraViews
void drawExtraViews(DrawBuf buf)

override to allow extra views

ensureCursorVisible
void ensureCursorVisible()
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)

getDisplayPos
bool getDisplayPos(int offset, int y0, int y1)
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.
getDisplayValuesNoCache
MinMax getDisplayValuesNoCache(int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
getExtraViewsHeight
int getExtraViewsHeight(int parentHeight)

override to allow extra views

getPlayPosition
void getPlayPosition()

player position to screen

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.
handleAction
bool handleAction(Action a)

override to handle specific actions

layout
void layout(Rect rc)

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

layoutExtraViews
void layoutExtraViews(Rect rc)

override to allow extra views

limitPosition
void limitPosition(int position)
Undocumented in source. Be warned that the author may not have intended to support it.
measure
void measure(int parentWidth, int parentHeight)

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

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

onKeyEvent
bool onKeyEvent(KeyEvent event)

process key event, return true if event is processed.

onMouseEvent
bool onMouseEvent(MouseEvent event)

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

onScrollEvent
bool onScrollEvent(AbstractSlider source, ScrollEvent event)

handle scroll event

onTimer
bool onTimer(ulong id)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
setCursorPos
void setCursorPos(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
setPlayPosition
void setPlayPosition()

set cursor position to player position

updateHScale
void updateHScale(int newScale, int preserveX)
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.
updateSelection
void updateSelection(int x)
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.
updateZoomCache
void updateZoomCache()
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.
zoomFull
void zoomFull()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

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.

Variables

_clientRect
Rect _clientRect;
Undocumented in source.
_cursorPos
int _cursorPos;
Undocumented in source.
_file
WaveFile _file;
Undocumented in source.
_hScroll
ScrollBar _hScroll;
Undocumented in source.
_hruler
HRuler _hruler;
Undocumented in source.
_hscale
int _hscale;
Undocumented in source.
_mixer
Mixer _mixer;
Undocumented in source.
_playTimer
ulong _playTimer;
Undocumented in source.
_player
Mp3Player _player;
Undocumented in source.
_scrollPos
int _scrollPos;
Undocumented in source.
_selEnd
int _selEnd;
Undocumented in source.
_selStart
int _selStart;
Undocumented in source.
_vscale
float _vscale;
Undocumented in source.
_zoomCache
MinMax[] _zoomCache;
Undocumented in source.
_zoomCacheScale
int _zoomCacheScale;
Undocumented in source.

Meta