Abstract base class for rendering text strings
更多...
#include <qwt_text_engine.h>
|
|
virtual | ~QwtTextEngine () |
| | Destructor
|
| |
| virtual double | heightForWidth (const QFont &font, int flags, const QString &text, double width) const =0 |
| |
| virtual QSizeF | textSize (const QFont &font, int flags, const QString &text) const =0 |
| |
| virtual bool | mightRender (const QString &text) const =0 |
| |
| virtual void | textMargins (const QFont &font, const QString &text, double &left, double &right, double &top, double &bottom) const =0 |
| |
| virtual void | draw (QPainter *painter, const QRectF &rect, int flags, const QString &text) const =0 |
| |
Abstract base class for rendering text strings
A text engine is responsible for rendering texts for a specific text format. They are used by QwtText to render a text.
- 参见
- QwtText::setTextEngine()
◆ QwtTextEngine()
| QwtTextEngine::QwtTextEngine |
( |
| ) |
|
|
protected |
Protected constructor
Constructor
◆ draw()
| virtual void QwtTextEngine::draw |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect, |
|
|
int |
flags, |
|
|
const QString & |
text |
|
) |
| const |
|
pure virtual |
◆ heightForWidth()
| virtual double QwtTextEngine::heightForWidth |
( |
const QFont & |
font, |
|
|
int |
flags, |
|
|
const QString & |
text, |
|
|
double |
width |
|
) |
| const |
|
pure virtual |
◆ mightRender()
| virtual bool QwtTextEngine::mightRender |
( |
const QString & |
text | ) |
const |
|
pure virtual |
◆ textMargins()
| virtual void QwtTextEngine::textMargins |
( |
const QFont & |
font, |
|
|
const QString & |
text, |
|
|
double & |
left, |
|
|
double & |
right, |
|
|
double & |
top, |
|
|
double & |
bottom |
|
) |
| const |
|
pure virtual |
◆ textSize()
| virtual QSizeF QwtTextEngine::textSize |
( |
const QFont & |
font, |
|
|
int |
flags, |
|
|
const QString & |
text |
|
) |
| const |
|
pure virtual |
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_text_engine.h
- /home/runner/work/QWT/QWT/src/plot/qwt_text_engine.cpp