10 #ifndef QWT_SCALE_DRAW_H
11 #define QWT_SCALE_DRAW_H
14 #include "qwt_global.h"
15 #include "qwt_abstract_scale_draw.h"
37 enum Alignment { BottomScale, TopScale, LeftScale, RightScale };
46 void getBorderDistHint(
const QFont &,
int &start,
int &end)
const;
47 int minLabelDist(
const QFont &)
const;
49 int minLength(
const QPen &,
const QFont &)
const;
50 virtual int extent(
const QPen &,
const QFont &)
const;
52 void move(
int x,
int y);
53 void move(
const QPoint &);
54 void setLength(
int length);
56 Alignment alignment()
const;
57 void setAlignment(Alignment);
59 Qt::Orientation orientation()
const;
64 #if QT_VERSION < 0x040000
65 void setLabelAlignment(
int);
66 int labelAlignment()
const;
68 void setLabelAlignment(Qt::Alignment);
69 Qt::Alignment labelAlignment()
const;
72 void setLabelRotation(
double rotation);
73 double labelRotation()
const;
75 int maxLabelHeight(
const QFont &)
const;
76 int maxLabelWidth(
const QFont &)
const;
78 QPoint labelPosition(
double val)
const;
80 QRect labelRect(
const QFont &,
double val)
const;
81 QSize labelSize(
const QFont &,
double val)
const;
83 QRect boundingLabelRect(
const QFont &,
double val)
const;
87 #if QT_VERSION < 0x040000
88 QWMatrix labelMatrix(
const QPoint &,
const QSize &)
const;
90 QMatrix labelMatrix(
const QPoint &,
const QSize &)
const;
93 virtual void drawTick(QPainter *p,
double val,
int len)
const;
95 virtual void drawLabel(QPainter *p,
double val)
const;