Audacity 3.2.0
|
#include <ClipParameters.h>
Public Member Functions | |
ClipParameters (const ClipTimes &clip, const wxRect &rect, const ZoomInfo &zoomInfo) | |
Static Public Member Functions | |
static wxRect | GetClipRect (const ClipTimes &clip, const ZoomInfo &zoomInfo, const wxRect &viewRect, bool *outShowSamples=nullptr) |
Public Attributes | |
const double | trackRectT0 |
double | t0 |
double | t1 |
const double | averagePixelsPerSecond |
const bool | showIndividualSamples |
wxRect | hiddenMid |
int | hiddenLeftOffset |
wxRect | mid |
int | leftOffset |
Definition at line 18 of file ClipParameters.h.
ClipParameters::ClipParameters | ( | const ClipTimes & | clip, |
const wxRect & | rect, | ||
const ZoomInfo & | zoomInfo | ||
) |
Definition at line 51 of file ClipParameters.cpp.
References averagePixelsPerSecond, anonymous_namespace{ClipParameters.cpp}::CalculateAdjustmentForZoomLevel(), anonymous_namespace{ClipParameters.cpp}::GetBlankSpaceBeforePlayEndTime(), ClipTimes::GetPlayEndTime(), ClipTimes::GetPlayStartTime(), ClipTimes::GetStretchRatio(), hiddenLeftOffset, hiddenMid, leftOffset, mid, min(), ZoomInfo::PositionToTime(), showIndividualSamples, t0, t1, ZoomInfo::TimeToPosition(), and trackRectT0.
|
static |
Definition at line 160 of file ClipParameters.cpp.
References anonymous_namespace{ClipParameters.cpp}::CalculateAdjustmentForZoomLevel(), anonymous_namespace{ClipParameters.cpp}::GetBlankSpaceBeforePlayEndTime(), anonymous_namespace{ClipParameters.cpp}::GetPixelsPerSecond(), ClipTimes::GetPlayEndTime(), ClipTimes::GetPlayStartTime(), ClipTimes::GetRate(), ClipTimes::GetStretchRatio(), min(), anonymous_namespace{ClipParameters.cpp}::ShowIndividualSamples(), showIndividualSamples, and ZoomInfo::TimeToPosition().
Referenced by WaveChannelView::ClipDetailsVisible(), WaveChannelView::ClipHitTestArea(), WaveTrackAffordanceControls::Draw(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), LowlitClipButton::Detail::GetButtonRectangle(), WaveClipAdjustBorderHandle::HitAnywhere(), and WaveTrackAffordanceControls::OnAffordanceClick().
const double ClipParameters::averagePixelsPerSecond |
Definition at line 31 of file ClipParameters.h.
Referenced by ClipParameters().
int ClipParameters::hiddenLeftOffset |
Definition at line 35 of file ClipParameters.h.
Referenced by ClipParameters().
wxRect ClipParameters::hiddenMid |
Definition at line 34 of file ClipParameters.h.
Referenced by ClipParameters().
int ClipParameters::leftOffset |
Definition at line 38 of file ClipParameters.h.
Referenced by ClipParameters().
wxRect ClipParameters::mid |
Definition at line 37 of file ClipParameters.h.
Referenced by ClipParameters().
const bool ClipParameters::showIndividualSamples |
Definition at line 32 of file ClipParameters.h.
Referenced by ClipParameters(), and GetClipRect().
double ClipParameters::t0 |
Definition at line 28 of file ClipParameters.h.
Referenced by ClipParameters().
double ClipParameters::t1 |
Definition at line 29 of file ClipParameters.h.
Referenced by ClipParameters().
const double ClipParameters::trackRectT0 |
Definition at line 24 of file ClipParameters.h.
Referenced by ClipParameters().