Definition at line 130 of file qwt_text.h.
Public Member Functions | |
QwtPlainText (const QString &text, const QFont &, int align=Qt::AlignCenter|Qt::WordBreak|Qt::ExpandTabs, const QColor &color=QColor(), const QPen &pen=QPen(Qt::NoPen), const QBrush &brush=QBrush(Qt::NoBrush)) | |
QwtPlainText (const QString &text, const QFont &font, const QColor &color) | |
virtual QwtText * | clone () const |
virtual int | heightForWidth (int width) const |
virtual QRect | boundingRect (QPainter *painter=0) const |
virtual void | draw (QPainter *painter, const QRect &rect) const |
|
Constructor.
Referenced by clone(). |
|
Constructor.
|
|
Returns the bounding rectangle. The bounding rectangle is calculated with respect to (0, 0). The left and top border depend on the alignment flags:
Use for instance QRect::moveBy(x,y), before drawing the text into the rectangle. Implements QwtText. Definition at line 261 of file qwt_text.cpp. References QwtText::alignment(), QwtText::font(), QwtText::fontMetrics(), and QwtText::text(). |
|
Create a clone.
Implements QwtText. Definition at line 224 of file qwt_text.cpp. References QwtText::alignment(), QwtText::color(), QwtText::font(), QwtPlainText(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text(). |
|
Draw the text in a clipping rectangle.
Implements QwtText. Definition at line 246 of file qwt_text.cpp. References QwtText::alignment(), QwtText::color(), QwtPainter::drawRect(), QwtPainter::drawText(), QwtText::font(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text(). |
|
Find the height for a given width.
Implements QwtText. Definition at line 235 of file qwt_text.cpp. References QwtText::alignment(), QwtText::fontMetrics(), and QwtText::text(). |