QwtPlainTextEngine(3)
πΈ NAME πΈ
hey bestie, welcome to QwtPlainTextEngine(3) from the Library Functions Manual π this is the page for QwtPlainTextEngine β literally a text engine for plain texts. that's the whole vibe.
β¨ SYNOPSIS β¨
#include <qwt_text_engine.h>
Inherits QwtTextEngine.
π Public Member Functions
QwtPlainTextEngine ()β Constructor.virtual ~QwtPlainTextEngine ()β Destructor.virtual double heightForWidth (const QFont &font, int flags, const QString &text, double width) const overridevirtual QSizeF textSize (const QFont &font, int flags, const QString &text) const overridevirtual void draw (QPainter *, const QRectF &rect, int flags, const QString &text) const overrideβ Draw the text in a clipping rectangle.virtual bool mightRender (const QString &) const overridevirtual void textMargins (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const override
π«Ά Public Member Functions inherited from QwtTextEngine
virtual ~QwtTextEngine ()β Destructor.
π Additional Inherited Members
π§ Protected Member Functions inherited from QwtTextEngine
QwtTextEngine ()β Constructor.
π¦ Detailed Description π¦
QwtPlainTextEngine is a text engine for plain texts β no cap, that's the whole assignment π
it renders texts using the basic Qt classes QPainter and QFontMetrics β¨
Definition at line 111 of file qwt_text_engine.h.
π Constructor & Destructor Documentation π
QwtPlainTextEngine::QwtPlainTextEngine ()
Constructor. that's it, that's the function π«Ά
Definition at line 151 of file qwt_text_engine.cpp.
QwtPlainTextEngine::~QwtPlainTextEngine () [virtual]
Destructor. goodbye bestie π
Definition at line 157 of file qwt_text_engine.cpp.
π₯ Member Function Documentation π₯
π¨ draw
void QwtPlainTextEngine::draw (QPainter * painter, const QRectF & rect, int flags, const QString & text) const [override], [virtual]
Draw the text in a clipping rectangle. it's a wrapper for QPainter::drawText, periodt β¨
Parameters
painterβ Painterrectβ Clipping rectangleflagsβ Bitwise OR of the flags used like inQPainter::drawTexttextβ Text to be rendered
Implements QwtTextEngine.
Definition at line 230 of file qwt_text_engine.cpp.
π heightForWidth
double QwtPlainTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, double width) const [override], [virtual]
Find the height for a given width π yes ma'am, math time.
Parameters
fontβ Font of the textflagsβ Bitwise OR of the flags used like inQPainter::drawTexttextβ Text to be renderedwidthβ Width
Returns
Calculated height.
Implements QwtTextEngine.
Definition at line 172 of file qwt_text_engine.cpp.
π mightRender
bool QwtPlainTextEngine::mightRender (const QString & ) const [override], [virtual]
Test if a string can be rendered by this text engine.
Returns
Always true. All texts can be rendered by QwtPlainTextEngine.
Implements QwtTextEngine.
Definition at line 240 of file qwt_text_engine.cpp.
π§Έ textMargins
void QwtPlainTextEngine::textMargins (const QFont & font, const QString & , double & left, double & right, double & top, double & bottom) const [override], [virtual]
Return margins around the texts πΈ
Parameters
fontβ Font of the textleftβ Return 0rightβ Return 0topβ Return value for the top marginbottomβ Return value for the bottom margin
Implements QwtTextEngine.
Definition at line 210 of file qwt_text_engine.cpp.
π¦ textSize
QSizeF QwtPlainTextEngine::textSize (const QFont & font, int flags, const QString & text) const [override], [virtual]
Returns the size, that is needed to render text π
Parameters
fontβ Font of the textflagsβ Bitwise OR of the flags used like inQPainter::drawTexttextβ Text to be rendered
Returns
Calculated size.
Implements QwtTextEngine.
Definition at line 191 of file qwt_text_engine.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so yeah, no human author to tag here β just the machine doing its thing π€β¨
π cute little sign-off: this footer energy is Qwt User's Guide for QwtPlainTextEngine(3) β and no date was printed in the footer, so we're not inventing one, bestie πΈβ¨
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms