Definition at line 27 of file qwt_text.h.
Public Types | |
enum | TextFormat { AutoText = 0, PlainText, RichText } |
enum | PaintAttributes { PaintUsingPainter = 0, PaintUsingTextFont = 1, PaintUsingTextColor = 2, PaintBackground = 4 } |
enum | LayoutAttributes { DefaultLayout = 0, MinimumLayout = 1 } |
Public Member Functions | |
QwtText (const QString &=QString::null, TextFormat textFormat=AutoText) | |
QwtText (const QwtText &) | |
~QwtText () | |
QwtText & | operator= (const QwtText &) |
int | operator== (const QwtText &) const |
int | operator!= (const QwtText &) const |
void | setText (const QString &, QwtText::TextFormat textFormat=AutoText) |
QString | text () const |
bool | isNull () const |
bool | isEmpty () const |
void | setFont (const QFont &) |
QFont | font () const |
QFont | usedFont (const QFont &) const |
void | setFlags (int flags) |
int | flags () const |
void | setColor (const QColor &) |
QColor | color () const |
QColor | usedColor (const QColor &) const |
void | setBackgroundPen (const QPen &) |
QPen | backgroundPen () const |
void | setBackgroundBrush (const QBrush &) |
QBrush | backgroundBrush () const |
void | setPaintAttributes (int) |
int | paintAttributes () const |
void | setLayoutAttributes (int) |
int | layoutAttributes () const |
int | heightForWidth (int width, const QFont &=QFont()) const |
QSize | textSize (const QFont &=QFont()) const |
void | draw (QPainter *painter, const QRect &rect) const |
|
Destructor.
Definition at line 81 of file qwt_text.cpp. |
|
Return the font.
Definition at line 149 of file qwt_text.cpp. Referenced by QwtPlotPrintFilter::apply(). |
|
Set the font.
Definition at line 142 of file qwt_text.cpp. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
Return the text.
Definition at line 120 of file qwt_text.cpp. |