1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-04 21:50:51 +01:00

Move AudacityProject::GetZoomOf*

This commit is contained in:
Paul Licameli
2018-10-27 19:47:48 -04:00
parent b2ea8ab6e9
commit edd23e2634
6 changed files with 127 additions and 117 deletions

View File

@@ -85,12 +85,14 @@ public:
static double GetDefaultZoom()
{ return 44100.0 / 512.0; }
// There is NO GetZoom()!
// Use TimeToPosition and PositionToTime and OffsetTimeByPixels!
// Limits zoom to certain bounds
void SetZoom(double pixelsPerSecond);
double GetZoom();
// This function should not be used to convert positions to times and back
// Use TimeToPosition and PositionToTime and OffsetTimeByPixels instead
double GetZoom() const;
static double GetMaxZoom( );
static double GetMinZoom( );