mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
GetTracksUsableArea() out of TrackPanel
This commit is contained in:
@@ -101,6 +101,12 @@ public:
|
||||
int GetLabelWidth() const { return GetVRulerOffset() + GetVRulerWidth(); }
|
||||
int GetLeftOffset() const { return GetLabelWidth() + 1;}
|
||||
|
||||
int GetTracksUsableWidth() const
|
||||
{
|
||||
return
|
||||
std::max( 0, GetWidth() - ( GetLeftOffset() + kRightMargin ) );
|
||||
}
|
||||
|
||||
bool ZoomInAvailable() const;
|
||||
bool ZoomOutAvailable() const;
|
||||
|
||||
|
Reference in New Issue
Block a user