![]() |
Audacity 3.2.0
|
RulerPanel class allows you to work with a Ruler like any other wxWindow. More...
#include <RulerPanel.h>
Classes | |
| struct | Options |
Public Types | |
| using | Range = std::pair< double, double > |
Public Member Functions | |
| RulerPanel (wxWindow *parent, wxWindowID id, wxOrientation orientation, const wxSize &bounds, const Range &range, const RulerFormat &format, const TranslatableString &units, const Options &options={}, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
| ~RulerPanel () | |
| void | DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) override |
| void | OnErase (wxEraseEvent &evt) |
| void | OnPaint (wxPaintEvent &evt) |
| void | OnSize (wxSizeEvent &evt) |
| void | SetTickColour (wxColour &c) |
| bool | AcceptsFocus () const override |
| bool | AcceptsFocusFromKeyboard () const override |
Public Member Functions inherited from wxPanelWrapper | |
| wxPanelWrapper () | |
| wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
| bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
| void | SetLabel (const TranslatableString &label) |
| void | SetName (const TranslatableString &name) |
| void | SetToolTip (const TranslatableString &toolTip) |
| void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
| wxTabTraversalWrapper (Args &&... args) | |
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
| wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
| wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Attributes | |
| Ruler | ruler |
RulerPanel class allows you to work with a Ruler like any other wxWindow.
Definition at line 19 of file RulerPanel.h.
| using RulerPanel::Range = std::pair<double, double> |
Definition at line 23 of file RulerPanel.h.
| RulerPanel::RulerPanel | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| wxOrientation | orientation, | ||
| const wxSize & | bounds, | ||
| const Range & | range, | ||
| const RulerFormat & | format, | ||
| const TranslatableString & | units, | ||
| const Options & | options = {}, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize |
||
| ) |
Definition at line 35 of file RulerPanel.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, LinearUpdater::Instance(), and LogarithmicUpdater::Instance().
| RulerPanel::~RulerPanel | ( | ) |
Definition at line 77 of file RulerPanel.cpp.
|
inlineoverride |
Definition at line 73 of file RulerPanel.h.
|
inlineoverride |
Definition at line 75 of file RulerPanel.h.
|
override |
Definition at line 106 of file RulerPanel.cpp.
References ruler, and Ruler::SetBounds().
| void RulerPanel::OnErase | ( | wxEraseEvent & | evt | ) |
Definition at line 81 of file RulerPanel.cpp.
| void RulerPanel::OnPaint | ( | wxPaintEvent & | evt | ) |
Definition at line 86 of file RulerPanel.cpp.
References Ruler::Draw(), and ruler.
| void RulerPanel::OnSize | ( | wxSizeEvent & | evt | ) |
Definition at line 97 of file RulerPanel.cpp.
|
inline |
Definition at line 70 of file RulerPanel.h.
References anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), and Ruler::SetTickColour().
| Ruler RulerPanel::ruler |
Definition at line 79 of file RulerPanel.h.
Referenced by DoSetSize(), FrequencyPlotDialog::DrawPlot(), EqualizationUI::OnLinFreq(), EqualizationPanel::OnPaint(), EffectScienFilterPanel::OnPaint(), OnPaint(), EffectScienFilter::TransferGraphLimitsFromWindow(), EqualizationUI::UpdateDraw(), EqualizationUI::UpdateGraphic(), and EqualizationUI::UpdateRuler().