10 #ifndef QWT_SCALE_DRAW_H 11 #define QWT_SCALE_DRAW_H 17 #include <qtransform.h> 56 void getBorderDistHint(
const QFont &,
int &start,
int &end )
const;
57 int minLabelDist(
const QFont & )
const;
59 int minLength(
const QFont & )
const;
60 virtual double extent(
const QFont & )
const;
62 void move(
double x,
double y );
63 void move(
const QPointF & );
64 void setLength(
double length );
69 Qt::Orientation orientation()
const;
74 void setLabelAlignment( Qt::Alignment );
75 Qt::Alignment labelAlignment()
const;
77 void setLabelRotation(
double rotation );
78 double labelRotation()
const;
80 int maxLabelHeight(
const QFont & )
const;
81 int maxLabelWidth(
const QFont & )
const;
83 QPointF labelPosition(
double val )
const;
85 QRectF labelRect(
const QFont &,
double val )
const;
86 QSizeF labelSize(
const QFont &,
double val )
const;
88 QRect boundingLabelRect(
const QFont &,
double val )
const;
91 QTransform labelTransformation(
const QPointF &,
const QSizeF & )
const;
93 virtual void drawTick( QPainter *,
double val,
double len )
const;
95 virtual void drawLabel( QPainter *,
double val )
const;
114 move( QPointF( x, y ) );
A abstract base class for drawing scales.
virtual void drawBackbone(QPainter *painter) const =0
virtual void drawTick(QPainter *painter, double value, double len) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
virtual double extent(const QFont &font) const =0
A class for drawing scales.
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
void move(double x, double y)