QwtRichTextEngine(3)
๐ QwtRichTextEngine โ a Qt rich text engine, bestie
okay so this page lives in the Library Functions Manual (that's the 3 in QwtRichTextEngine(3), iykyk โ section 3 is all about library functions), and it's literally the glow-up guide for QwtRichTextEngine. Sit down, grab a strawberry ๐, and let's get into it.
โจ NAME โจ
QwtRichTextEngine โ a text engine for Qt rich texts. that's it, that's the vibe. ๐
๐ฆ SYNOPSIS ๐ฆ
#include <qwt_text_engine.h>
Inherits QwtTextEngine. it's giving "family money," honestly ๐
Public Member Functions
QwtRichTextEngine()โ the constructor. hello bestie ๐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 overridevirtual 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()โ the destructor. goodbye bestie ๐ญ
Additional Inherited Members
Protected Member Functions inherited from QwtTextEngine
QwtTextEngine()โ the constructor.
๐ธ Detailed Description ๐ธ
A text engine for Qt rich texts. ๐
QwtRichTextEngine renders Qt rich texts using the classes of the Scribe framework of Qt. like, it's out here using Scribe โ main character energy, no cap.
Definition at line 147 of file qwt_text_engine.h.
๐ Constructor & Destructor Documentation ๐
QwtRichTextEngine::QwtRichTextEngine()
Constructor. that's literally the whole description, she's mysterious like that ๐
Definition at line 248 of file qwt_text_engine.cpp.
๐ Member Function Documentation ๐
void QwtRichTextEngine::draw(QPainter *painter, const QRectF &rect, int flags, const QString &text) const [override], [virtual]
Draw the text in a clipping rectangle. put it in the box, bestie ๐ฅ
Parameters:
painterโ Painterrectโ Clipping rectangleflagsโ Bitwise OR of the flags like in forQPainter::drawText()textโ Text to be rendered
Implements QwtTextEngine.
Definition at line 305 of file qwt_text_engine.cpp.
double QwtRichTextEngine::heightForWidth(const QFont &font, int flags, const QString &text, double width) const [override], [virtual]
Find the height for a given width. math girlie hours ๐งฎโจ
Parameters:
fontโ Font of the textflagsโ Bitwise OR of the flags used like inQPainter::drawText()textโ Text to be renderedwidthโ Width
Returns: Calculated height
Implements QwtTextEngine.
Definition at line 262 of file qwt_text_engine.cpp.
bool QwtRichTextEngine::mightRender(const QString &text) const [override], [virtual]
Test if a string can be rendered by this text engine. vibe check on the string ๐
Parameters:
textโ Text to be tested
Returns: Qt::mightBeRichText(text);
Implements QwtTextEngine.
Definition at line 331 of file qwt_text_engine.cpp.
void QwtRichTextEngine::textMargins(const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const [override], [virtual]
Return margins around the texts. plot twist: they're all zero, she's low maintenance fr fr ๐ซถ
Parameters:
leftโ Return0rightโ Return0topโ Return0bottomโ Return0
Implements QwtTextEngine.
Definition at line 344 of file qwt_text_engine.cpp.
QSizeF QwtRichTextEngine::textSize(const QFont &font, int flags, const QString &text) const [override], [virtual]
Returns the size, that is needed to render text. so like, how much space does this text actually need, bestie ๐
Parameters:
fontโ Font of the textflagsโ Bitwise OR of the flags used like inQPainter::drawText()textโ Text to be rendered
Returns: Calculated size
Implements QwtTextEngine.
Definition at line 281 of file qwt_text_engine.cpp.
๐ Author ๐
Generated automatically by Doxygen for the Qwt User's Guide from the source code. the robots did this one, not me ๐
and that's the whole page, periodt. โจ this icon of a page came straight out of the Qwt User's Guide, dated QwtRichTextEngine(3) โ so if you forget it, just know bestie Doxygen had your back the whole time. bye babe, go render something gorgeous ๐ฆ๐
๐ฆ 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