11#ifndef __AUDACITY_RULER__
12#define __AUDACITY_RULER__
52 void SetBounds(
int left,
int top,
int right,
int bottom);
55 void SetOrientation(
int orient);
60 void SetRange(
double min,
double max);
67 void SetRange(
double min,
double max,
double hiddenMin,
double hiddenMax);
79 void SetTwoTone(
bool twoTone);
89 void SetDbMirrorValue(
const double d );
94 void SetLabelEdges(
bool labelEdges);
98 void SetFlip(
bool flip);
101 void SetMinor(
bool value);
104 void SetFonts(
const wxFont &minorFont,
const wxFont &majorFont,
const wxFont &minorMinorFont);
115 void OfflimitsPixels(
int start,
int end);
120 void GetMaxSize(wxCoord *width, wxCoord *height);
127 void Draw(wxDC& dc)
const;
128 void Draw(wxDC& dc,
const Envelope* envelope)
const;
132 void DrawGrid(wxDC& dc,
int length,
bool minor =
true,
bool major =
true,
int xOffset = 0,
int yOffset = 0)
const;
136 { mTickColour = colour; mPen.SetColour( colour );}
143 void ChooseFonts( wxDC &dc )
const;
145 void UpdateCache( wxDC &dc,
const Envelope* envelope )
const;
172 int GetZeroPosition()
const;
Piecewise linear or piecewise exponential function from double to double.
An object that sends messages to an open-ended list of subscribed callbacks.
void SetTickColour(const wxColour &colour)
std::unique_ptr< Cache > mpCache
RulerUpdater::Bits mUserBits
std::unique_ptr< RulerStruct::Fonts > mpUserFonts
std::vector< Label > Labels
Holds a msgid for the translation catalog; may also bind format arguments.
std::optional< LogWindowUpdater > pUpdater
const char * end(const char *str) noexcept