26 const int mLeft = context.
mLeft;
27 const int mTop = context.
mTop;
32 const int spacing = (mOrientation == wxHORIZONTAL) ? 6 : 2;
33 const bool mFlip = context.
mFlip;
38 if (labelIdx >= outputs.
labels.size())
54 mLeft, mTop, spacing, mFonts.
lead,
58 if (!result.second.text)
62 auto& rect = result.first;
63 outputs.
box.Union(rect);
64 outputs.
labels[labelIdx] = (result.second);
65 return !rect.IsEmpty();
bool TickCustom(wxDC &dc, int labelIdx, wxFont font, TickOutputs outputs, const RulerStruct &context) const override
~CustomUpdaterPosition() override
static const CustomUpdaterPosition & Instance()
static std::pair< wxRect, Label > MakeTick(RulerUpdater::Label lab, wxDC &dc, wxFont font, std::vector< bool > &bits, int left, int top, int spacing, int lead, bool flip, int orientation)
Holds a msgid for the translation catalog; may also bind format arguments.
std::unique_ptr< Fonts > mpFonts
TranslatableString mUnits
An array of these created by the Updater is used to determine what and where text annotations to the ...
std::optional< TranslatableString > text