Audacity 3.2.0
|
An array of these created by the Updater is used to determine what and where text annotations to the numbers on the Ruler get drawn. More...
#include <RulerUpdater.h>
Public Member Functions | |
void | Draw (wxDC &dc, bool twoTone, wxColour c, std::unique_ptr< RulerStruct::Fonts > &fonts) const |
Public Attributes | |
double | value |
int | pos |
int | lx |
int | ly |
std::optional< TranslatableString > | text |
TranslatableString | units |
An array of these created by the Updater is used to determine what and where text annotations to the numbers on the Ruler get drawn.
Definition at line 60 of file RulerUpdater.h.
void RulerUpdater::Label::Draw | ( | wxDC & | dc, |
bool | twoTone, | ||
wxColour | c, | ||
std::unique_ptr< RulerStruct::Fonts > & | fonts | ||
) | const |
Definition at line 86 of file RulerUpdater.cpp.
References ThemeBase::Colour(), str, and theTheme.
int RulerUpdater::Label::lx |
Definition at line 63 of file RulerUpdater.h.
int RulerUpdater::Label::ly |
Definition at line 63 of file RulerUpdater.h.
int RulerUpdater::Label::pos |
Definition at line 62 of file RulerUpdater.h.
Referenced by GeneratedUpdater::Tick(), CustomUpdaterPosition::TickCustom(), and CustomUpdaterValue::TickCustom().
std::optional<TranslatableString> RulerUpdater::Label::text |
Definition at line 67 of file RulerUpdater.h.
Referenced by WaveformVRulerControls::DoUpdateVRuler(), GeneratedUpdater::Tick(), CustomUpdaterPosition::TickCustom(), and CustomUpdaterValue::TickCustom().
TranslatableString RulerUpdater::Label::units |
Definition at line 69 of file RulerUpdater.h.
Referenced by GeneratedUpdater::Tick(), CustomUpdaterPosition::TickCustom(), and CustomUpdaterValue::TickCustom().
double RulerUpdater::Label::value |
Definition at line 61 of file RulerUpdater.h.
Referenced by WaveformVRulerControls::DoUpdateVRuler(), GeneratedUpdater::Tick(), CustomUpdaterPosition::TickCustom(), and CustomUpdaterValue::TickCustom().