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 )
QString text() const
Definition: qwt_text.cpp:256
TextFormat
Text format.
Definition: qwt_text.h:64
A class representing a text.
Definition: qwt_text.h:51
Definition: qwt_text.h:88
Draw the text as it is, using a QwtPlainTextEngine.
Definition: qwt_text.h:75
bool isNull() const
Definition: qwt_text.h:207
bool isEmpty() const
Definition: qwt_text.h:213
QFlags< LayoutAttribute > LayoutAttributes
Layout attributes.
Definition: qwt_text.h:140
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
Definition: qwt_text.h:122
Definition: qwt_text.h:94
LayoutAttribute
Layout Attributes The layout attributes affects some aspects of the layout of the text...
Definition: qwt_text.h:128
Abstract base class for rendering text strings.
Definition: qwt_text_engine.h:35
Use the Scribe framework (Qt Rich Text) to render the text.
Definition: qwt_text.h:78
PaintAttribute
Paint Attributes.
Definition: qwt_text.h:109