13 #include "qwt_global.h"
17 #include <qmetatype.h>
112 PaintUsingTextFont = 0x01,
115 PaintUsingTextColor = 0x02,
118 PaintBackground = 0x04
142 QwtText(
const QString & = QString::null,
149 bool operator==(
const QwtText & )
const;
150 bool operator!=(
const QwtText & )
const;
152 void setText(
const QString &,
154 QString text()
const;
157 bool isEmpty()
const;
159 void setFont(
const QFont & );
162 QFont usedFont(
const QFont & )
const;
164 void setRenderFlags(
int flags );
165 int renderFlags()
const;
167 void setColor(
const QColor & );
168 QColor color()
const;
170 QColor usedColor(
const QColor & )
const;
172 void setBorderRadius(
double );
173 double borderRadius()
const;
175 void setBorderPen(
const QPen & );
176 QPen borderPen()
const;
178 void setBackgroundBrush(
const QBrush & );
179 QBrush backgroundBrush()
const;
187 double heightForWidth(
double width,
const QFont & = QFont() )
const;
188 QSizeF textSize(
const QFont & = QFont() )
const;
190 void draw( QPainter *painter,
const QRectF &rect )
const;
203 LayoutCache *d_layoutCache;
209 return text().isNull();
215 return text().isEmpty();
219 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtText::LayoutAttributes )