QwtPlainTextEngine(3)
π 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 π
Version5.2.3Β· Tue Nov 20 2012 Β· pageQwtPlainTextEngine(3)that's the whole page bestie!! go forth and render some plain text, you're gonna slay π byeee πβ¨π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms