13#ifndef __AUDACITY_RULER_PANEL__
14#define __AUDACITY_RULER_PANEL__
23 using Range = std::pair<double, double>;
28 bool labelEdges {
false };
29 bool ticksAtExtremes {
false };
30 bool hasTickColour{
false };
36 { log = l;
return *
this; }
39 { flip = f;
return *
this; }
42 { labelEdges = l;
return *
this; }
45 { ticksAtExtremes = t;
return *
this; }
48 { tickColour = c; hasTickColour =
true;
return *
this; }
52 wxOrientation orientation,
57 const Options &options = {},
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize&
size = wxDefaultSize);
63 void DoSetSize(
int x,
int y,
64 int width,
int height,
65 int sizeFlags = wxSIZE_AUTO)
override;
67 void OnErase(wxEraseEvent &evt);
68 void OnPaint(wxPaintEvent &evt);
69 void OnSize(wxSizeEvent &evt);
static void OnSize(wxSizeEvent &evt)
void SetTickColour(const wxColour &colour)
RulerPanel class allows you to work with a Ruler like any other wxWindow.
void SetTickColour(wxColour &c)
bool AcceptsFocusFromKeyboard() const override
std::pair< double, double > Range
bool AcceptsFocus() const override
Holds a msgid for the translation catalog; may also bind format arguments.
Options & TickColour(const wxColour c)
Options & TicksAtExtremes(bool t)
Options & LabelEdges(bool l)