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 override
  • virtual QSizeF textSize(const QFont &font, int flags, const QString &text) const override
  • virtual void draw(QPainter *, const QRectF &rect, int flags, const QString &text) const override
  • virtual bool mightRender(const QString &) const override
  • virtual 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 โ€” Painter
  • rect โ€” Clipping rectangle
  • flags โ€” Bitwise OR of the flags like in for QPainter::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 text
  • flags โ€” Bitwise OR of the flags used like in QPainter::drawText()
  • text โ€” Text to be rendered
  • width โ€” 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 โ€” Return 0
  • right โ€” Return 0
  • top โ€” Return 0
  • bottom โ€” Return 0

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 text
  • flags โ€” Bitwise OR of the flags used like in QPainter::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