Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

QwtPlainTextEngine Class Reference

Inheritance diagram for QwtPlainTextEngine:

Inheritance graph
[legend]
Collaboration diagram for QwtPlainTextEngine:

Collaboration graph
[legend]
List of all members.

Detailed Description

Plain text drawing support.

Definition at line 69 of file qwt_text_engine.h.

Public Member Functions

 QwtPlainTextEngine ()
virtual ~QwtPlainTextEngine ()
virtual int heightForWidth (const QFont &font, int flags, const QString &text, int width) const
virtual QSize textSize (const QFont &font, int flags, const QString &text) const
virtual void draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const
virtual bool mightRender (const QString &) const
virtual void textMargins (const QFont &, const QString &, int &left, int &right, int &top, int &bottom)


Member Function Documentation

void QwtPlainTextEngine::draw QPainter *  painter,
const QRect &  rect,
int  flags,
const QString &  text
const [virtual]
 

Draw the text in a clipping rectangle.

Parameters:
painter Painter
rect Clipping rectangle

Implements QwtTextEngine.

Definition at line 175 of file qwt_text_engine.cpp.

References QwtPainter::drawText().

int QwtPlainTextEngine::heightForWidth const QFont &  font,
int  flags,
const QString &  text,
int  width
const [virtual]
 

Find the height for a given width

Implements QwtTextEngine.

Definition at line 145 of file qwt_text_engine.cpp.

void QwtPlainTextEngine::textMargins const QFont &  ,
const QString &  ,
int &  left,
int &  right,
int &  top,
int &  bottom
[virtual]
 

Return margins around the texts

The textSize might include margins around the text, like QFontMetrics::descent. In situations where texts need to be aligend in detail, knowing these margins might improve the layout calculations.

Reimplemented from QwtTextEngine.

Definition at line 165 of file qwt_text_engine.cpp.

QSize QwtPlainTextEngine::textSize const QFont &  font,
int  flags,
const QString &  text
const [virtual]
 

Returns the size, that is needed to render text

Implements QwtTextEngine.

Definition at line 155 of file qwt_text_engine.cpp.


Generated on Mon Jan 30 22:17:25 2006 for Qwt User's Guide by  doxygen 1.4.4