Audacity 3.2.0
RulerFormat.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 RulerFormat.h
6
7 Michael Papadopoulos
8
9**********************************************************************/
10
11#ifndef __AUDACITY_RULER_FORMAT__
12#define __AUDACITY_RULER_FORMAT__
13
14#include <wx/string.h>
15#include <cmath>
16
18public:
19 enum TickType {
21 };
22 explicit RulerFormat() {}
23 virtual ~RulerFormat();
24
25 virtual void SetTickSizes(
26 double units, double& major, double& minor, double &minorMinor,
27 int &mDigits
28 ) const = 0;
29
30 virtual void SetLabelString(
31 wxString& s, double d, double units, double minor, int mDigits, TickType tickType
32 ) const = 0;
33};
34
35#endif
virtual ~RulerFormat()
virtual void SetLabelString(wxString &s, double d, double units, double minor, int mDigits, TickType tickType) const =0
virtual void SetTickSizes(double units, double &major, double &minor, double &minorMinor, int &mDigits) const =0