10 #ifndef QWT_TEXT_ENGINE_H
11 #define QWT_TEXT_ENGINE_H 1
13 #include "qwt_global.h"
50 virtual double heightForWidth(
const QFont &font,
int flags,
51 const QString &text,
double width )
const = 0;
62 virtual QSizeF textSize(
const QFont &font,
int flags,
63 const QString &text )
const = 0;
71 virtual bool mightRender(
const QString &text )
const = 0;
88 virtual void textMargins(
const QFont &font,
const QString &text,
89 double &left,
double &right,
double &top,
double &bottom )
const = 0;
99 virtual void draw( QPainter *painter,
const QRectF &rect,
100 int flags,
const QString &text )
const = 0;
120 const QString &text,
double width )
const;
122 virtual QSizeF
textSize(
const QFont &font,
int flags,
123 const QString &text )
const;
125 virtual void draw( QPainter *painter,
const QRectF &rect,
126 int flags,
const QString &text )
const;
130 virtual void textMargins(
const QFont &,
const QString &,
131 double &left,
double &right,
double &top,
double &bottom )
const;
139 #ifndef QT_NO_RICHTEXT
153 const QString &text,
double width )
const;
155 virtual QSizeF
textSize(
const QFont &font,
int flags,
156 const QString &text )
const;
158 virtual void draw( QPainter *painter,
const QRectF &rect,
159 int flags,
const QString &text )
const;
163 virtual void textMargins(
const QFont &,
const QString &,
164 double &left,
double &right,
double &top,
double &bottom )
const;
167 QString taggedText(
const QString &,
int flags )
const;
170 #endif // !QT_NO_RICHTEXT