QwtPlotAbstractCanvas(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… 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 is NoFocusIndicator. 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 () const
  • void setBorderRadius (double)
  • double borderRadius () const

🌈 Protected Member Functions 🌈

  • QWidget * canvasWidget ()
  • const QWidget * canvasWidget () const
  • virtual 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) const
  • void 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 using drawFocusIndicator() ✨
  • 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