10 #ifndef QWT_SCALE_DRAW_H 11 #define QWT_SCALE_DRAW_H 60 void getBorderDistHint(
const QFont &,
int &start,
int &end )
const;
61 int minLabelDist(
const QFont & )
const;
63 int minLength(
const QFont & )
const;
66 void move(
double x,
double y );
67 void move( const QPointF & );
68 void setLength(
double length );
73 Qt::Orientation orientation() const;
76 double length() const;
78 void setLabelAlignment( Qt::Alignment );
79 Qt::Alignment labelAlignment() const;
81 void setLabelRotation(
double rotation );
82 double labelRotation() const;
84 int maxLabelHeight( const QFont & ) const;
85 int maxLabelWidth( const QFont & ) const;
87 QPointF labelPosition(
double value ) const;
89 QRectF labelRect( const QFont &,
double value ) const;
90 QSizeF labelSize( const QFont &,
double value ) const;
92 QRect boundingLabelRect( const QFont &,
double value ) const;
95 QTransform labelTransformation( const QPointF &, const QSizeF & ) const;
98 double value,
double len ) const QWT_OVERRIDE;
100 virtual
void drawBackbone( QPainter * ) const QWT_OVERRIDE;
101 virtual
void drawLabel( QPainter *,
double value ) const QWT_OVERRIDE;
120 move( QPointF( x, y ) );
A abstract base class for drawing scales.
enum MQTTPropertyCodes value
void drawBackbone(QPainter *painter, const QwtScaleDraw *scaleDraw)
const T & move(const T &v)
virtual double extent(const QFont &font) const =0
A class for drawing scales.
void drawTick(QPainter *painter, const QwtScaleDraw *scaleDraw, qreal tickPos, qreal tickLength)