24#include <wx/dcclient.h>
36 wxOrientation orientation,
63 if (orientation == wxVERTICAL) {
66 SetMinSize(wxSize(w, 150));
68 else if (orientation == wxHORIZONTAL) {
71 SetMinSize(wxSize(wxDefaultCoord, h));
73 if (options.hasTickColour)
107 int width,
int height,
110 wxPanelWrapper::DoSetSize(x, y, width, height, sizeFlags);
113 GetClientSize(&w, &h);
static const LinearUpdater & Instance()
static const LogarithmicUpdater & Instance()
void SetTickColour(const wxColour &colour)
void SetOrientation(int orient)
void Draw(wxDC &dc) const
void SetLabelEdges(bool labelEdges)
void GetMaxSize(wxCoord *width, wxCoord *height)
void SetBounds(int left, int top, int right, int bottom)
void SetUnits(const TranslatableString &units)
void SetRange(double min, double max)
RulerPanel class allows you to work with a Ruler like any other wxWindow.
void DoSetSize(int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) override
void OnSize(wxSizeEvent &evt)
std::pair< double, double > Range
void OnPaint(wxPaintEvent &evt)
void OnErase(wxEraseEvent &evt)
Holds a msgid for the translation catalog; may also bind format arguments.