QwtPlotAbstractCanvas(3)
π QwtPlotAbstractCanvas(3) β the glow-up base class β¨
okay bestie, welcome to the QwtPlotAbstractCanvas(3) page from the Qwt User's Guide manual π this is the literal blueprint, the main-character base class that all the plot canvas girlies inherit from. let's get into it π«Ά
πΈ NAME πΈ
QwtPlotAbstractCanvas β bestie, this is the base class for all types of plot canvases. every canvas has a little bit of her in it, periodt π
β¨ SYNOPSIS β¨
#include <qwt_plot_abstract_canvas.h>
Inherited by QwtPlotAbstractGLCanvas, and QwtPlotCanvas π§ (yes she's the mother of the family tree)
π Public Types π
enum FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator }β the focus indicator. the default setting isNoFocusIndicator. no cap.
π Public Member Functions π
QwtPlotAbstractCanvas (QWidget *canvasWidget)β Constructor β¨virtual ~QwtPlotAbstractCanvas ()β Destructor π¦QwtPlot * plot ()β return the parent plot widget πconst QwtPlot * plot () constβ return the parent plot widget (const edition, same energy) πvoid setFocusIndicator (FocusIndicator)FocusIndicator focusIndicator () constvoid setBorderRadius (double)double borderRadius () const
π Protected Member Functions π
QWidget * canvasWidget ()const QWidget * canvasWidget () constvirtual void drawFocusIndicator (QPainter *)virtual void drawBorder (QPainter *)virtual void drawBackground (QPainter *)β helper function for the derived plot canvas πvoid fillBackground (QPainter *)β helper function for the derived plot canvas πvoid drawCanvas (QPainter *)β draw the plot to the canvas πvoid drawStyled (QPainter *, bool)β helper function for the derived plot canvas πvoid drawUnstyled (QPainter *)β helper function for the derived plot canvas πQPainterPath canvasBorderPath (const QRect &rect) constvoid updateStyleSheetInfo ()β update the cached information about the current style sheet π
π¦ Detailed Description π¦
Base class for all type of plot canvases. she's giving foundation, she's giving infrastructure, she's literally the blueprint π β¨
Definition at line 21 of file qwt_plot_abstract_canvas.h.
π₯ Member Enumeration Documentation π₯
enum QwtPlotAbstractCanvas::FocusIndicator
Focus indicator. the default setting is NoFocusIndicator π―
See also: setFocusIndicator(), focusIndicator(), drawFocusIndicator()
Enumerator:
NoFocusIndicatorβ don't paint a focus indicator. simple, minimal, she's resting πCanvasFocusIndicatorβ the focus is related to the complete canvas. paint the focus indicator usingdrawFocusIndicator()β¨ItemFocusIndicatorβ the focus is related to an item (curve, point, ...) on the canvas. it's up to the application to display a focus indication using f.e. highlighting π«Ά
Definition at line 30 of file qwt_plot_abstract_canvas.h.
π Constructor & Destructor Documentation π
QwtPlotAbstractCanvas::QwtPlotAbstractCanvas (QWidget * canvasWidget)
[explicit] β Constructor β¨
Parameters:
canvasWidgetβ plot canvas widget π
Definition at line 534 of file qwt_plot_abstract_canvas.cpp.
QwtPlotAbstractCanvas::~QwtPlotAbstractCanvas () [virtual]
Destructor π¦ β she's logging off, respectfully.
Definition at line 546 of file qwt_plot_abstract_canvas.cpp.
π Member Function Documentation π
double QwtPlotAbstractCanvas::borderRadius () const
Returns: radius for the corners of the border frame π
See also: setBorderRadius()
Definition at line 613 of file qwt_plot_abstract_canvas.cpp.
QPainterPath QwtPlotAbstractCanvas::canvasBorderPath (const QRect & rect) const [protected]
Returns: path for the canvas border πΈ
Definition at line 619 of file qwt_plot_abstract_canvas.cpp.
QWidget * QwtPlotAbstractCanvas::canvasWidget () [protected]
Returns: canvas widget π
Definition at line 872 of file qwt_plot_abstract_canvas.cpp.
const QWidget * QwtPlotAbstractCanvas::canvasWidget () const [protected]
Returns: canvas widget π (the const twin, she ate too)
Definition at line 878 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawBackground (QPainter * painter) [protected], [virtual]
Helper function for the derived plot canvas π
Definition at line 690 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawBorder (QPainter * painter) [protected], [virtual]
Draw the border of the canvas β¨
Parameters:
painterβ Painter ποΈ
Reimplemented in QwtPlotCanvas.
Definition at line 628 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawCanvas (QPainter * painter) [protected]
Draw the plot to the canvas π
Definition at line 803 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawFocusIndicator (QPainter * painter) [protected], [virtual]
Draw the focus indication π
Parameters:
painterβ Painter ποΈ
Definition at line 587 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawStyled (QPainter * painter, bool hackStyledBackground) [protected]
Helper function for the derived plot canvas π (that second param is literally named hackStyledBackground, iykyk π)
Definition at line 744 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::drawUnstyled (QPainter * painter) [protected]
Helper function for the derived plot canvas π
Definition at line 702 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::fillBackground (QPainter * painter) [protected]
Helper function for the derived plot canvas π
Definition at line 696 of file qwt_plot_abstract_canvas.cpp.
QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator () const
Returns: focus indicator π―
See also: FocusIndicator, setFocusIndicator()
Definition at line 578 of file qwt_plot_abstract_canvas.cpp.
QwtPlot * QwtPlotAbstractCanvas::plot ()
Return parent plot widget π
Definition at line 552 of file qwt_plot_abstract_canvas.cpp.
const QwtPlot * QwtPlotAbstractCanvas::plot () const
Return parent plot widget π (const version, still iconic)
Definition at line 558 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setBorderRadius (double radius)
Set the radius for the corners of the border frame π
Parameters:
radiusβ radius of a rounded corner β¨
See also: borderRadius()
Definition at line 604 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setFocusIndicator (FocusIndicator focusIndicator)
Set the focus indicator π
See also: FocusIndicator, focusIndicator()
Definition at line 568 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::updateStyleSheetInfo () [protected]
Update the cached information about the current style sheet π β she's refreshing her memory, love that for her.
Definition at line 835 of file qwt_plot_abstract_canvas.cpp.
β Author β
Generated automatically by Doxygen for Qwt User's Guide from the source code. no cap, she was born from the source code herself π€π
k bye bestie!! π
β¨ this page came straight out of the Qwt User's Guide manual β that's the QwtPlotAbstractCanvas(3) page, dated right there in her footer where the guide lives π«Ά so if u ever forget which line the constructor's on (line 534 of qwt_plot_abstract_canvas.cpp, bestie, iykyk), u know exactly where to find her π mwah! π
π¦ 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