QwtPlainTextEngine(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– QwtPlainTextEngine πŸ’–

okay bestie, welcome to the Qwt User's Guide ✨ today's main character is QwtPlainTextEngine, and she's lowkey iconic. no cap.


🌸 NAME 🌸

QwtPlainTextEngine β€” and that's literally it, the manpage really said "name only, no notes" πŸ’… (the original description line is just empty, we're not gonna pretend otherwise)


✨ SYNOPSIS ✨

#include <qwt_text_engine.h>

Inherits QwtTextEngine. so yeah she's part of the family tree 🫢

πŸŽ€ Public Member Functions

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

🧚 Additional Inherited Members

(they exist! they're inherited! go look at the parent class, i'm not your mom 😭)


🌈 Detailed Description 🌈

A text engine for plain texts. that's the whole vibe. plain text, no frills, no drama.

QwtPlainTextEngine renders texts using the basic Qt classes QPainter and QFontMetrics. so like, nothing fancy is happening under the hood β€” it's just Qt doing its little Qt thing and we love that for her πŸ’–


πŸ‘‘ Member Function Documentation πŸ‘‘

⭐ void QwtPlainTextEngine::draw (QPainter *painter, const QRect &rect, intflags, const QString &text) const [virtual]

Draw the text in a clipping rectangle. it's literally a wrapper for QPainter::drawText, she's just standing on the shoulders of giants fr fr.

Parameters:

  • painter β€” Painter
  • rect β€” Clipping rectangle
  • flags β€” Bitwise OR of the flags used like in QPainter::drawText
  • text β€” Text to be rendered

Implements QwtTextEngine.


⭐ int QwtPlainTextEngine::heightForWidth (const QFont &font, intflags, const QString &text, intwidth) const [virtual]

Find the height for a given width. like, "how tall do i gotta be to fit all this at this width" β€” relatable honestly 😭

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.


⭐ bool QwtPlainTextEngine::mightRender (const QString &) const [virtual]

Test if a string can be rendered by this text engine.

Returns: Always true. All texts can be rendered by QwtPlainTextEngine. she said yes to everything, zero gatekeeping, we stan an inclusive queen πŸ‘‘

Implements QwtTextEngine.


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

Return margins around the texts

Parameters:

  • font β€” Font of the text
  • left β€” Return 0
  • right β€” Return 0
  • top β€” Return value for the top margin
  • bottom β€” Return value for the bottom margin

Implements QwtTextEngine.


⭐ QSize QwtPlainTextEngine::textSize (const QFont &font, intflags, const QString &text) const [virtual]

Returns the size, that is needed to render text

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.


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for Qwt User's Guide from the source code. not a human, just a little robot doing its best, and honestly? it ate πŸ’…


Version 5.2.3 Β· Tue Nov 20 2012 Β· page QwtPlainTextEngine(3) that's the whole page bestie!! go forth and render some plain text, you're gonna slay 🌟 byeee πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from