15#ifndef __AUDACITY_SNAP__
16#define __AUDACITY_SNAP__
62 bool noTimeSnap =
false,
71 bool noTimeSnap =
false,
85 static void Draw( wxDC *dc, wxInt64 snap0, wxInt64 snap1 );
90 void CondListAdd(
double t,
const Track *track);
91 double Get(
size_t index);
92 wxInt64 PixelDiff(
double t,
size_t index);
93 size_t Find(
double t,
size_t i0,
size_t i1);
94 size_t Find(
double t);
95 bool SnapToPoints(
Track *currentTrack,
double t,
bool rightEdge,
double *outT);
105 double mEpsilon{ 1 / 44100.0 };
110 bool mSnapToTime{
false };
const int kPixelTolerance
std::vector< SnapPoint > SnapPointArray
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An explicitly nonlocalized string, not meant for the user to see.
const AudacityProject * mProject
SnapPointArray mCandidates
SnapPointArray mSnapPoints
const ZoomInfo * mZoomInfo
SnapPoint(double t_=0.0, const Track *track_=nullptr)
Abstract base class for an object holding data associated with points on a time axis.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
PROJECT_FILE_IO_API wxString Find(const FilePath &path)
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.