QwtArrowButton(3)

πŸ’… QwtArrowButton(3) πŸ’…

okay bestie, welcome to the Library Functions Manual entry for QwtArrowButton β€” it's giving Arrow Button, and she is lowkey iconic πŸŽ€

✨ NAME ✨

QwtArrowButton β€” Arrow Button. that's the name, that's the vibe, periodt πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qwt_arrow_button.h>

Inherits QPushButton.

🌸 Public Member Functions 🌸

  • QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL) β€” the constructor, full details below bestie 🫢
  • virtual ~QwtArrowButton () β€” Destructor.
  • Qt::ArrowType arrowType () const β€” The direction of the arrows.
  • int num () const β€” The number of arrows.
  • virtual QSize sizeHint () const override
  • virtual QSize minimumSizeHint () const override β€” Return a minimum size hint.

πŸŽ€ Protected Member Functions πŸŽ€

  • virtual void paintEvent (QPaintEvent *) override
  • virtual void keyPressEvent (QKeyEvent *) override β€” autoRepeat for the space keys
  • virtual void drawButtonLabel (QPainter *) β€” Draw the button label.
  • virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
  • virtual QRect labelRect () const
  • virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const

🌈 Detailed Description 🌈

Arrow Button.

A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right.

Definition at line 23 of file qwt_arrow_button.h.

πŸ”₯ Constructor & Destructor Documentation πŸ”₯

πŸ’– QwtArrowButton::QwtArrowButton (int num, Qt::ArrowType arrowType, QWidget * parent = NULL) [explicit] πŸ’–

Parameters

  • num β€” Number of arrows
  • arrowType β€” see Qt::ArrowType in the Qt docs.
  • parent β€” Parent widget

Definition at line 55 of file qwt_arrow_button.cpp.

πŸ’€ QwtArrowButton::~QwtArrowButton () [virtual] πŸ’€

Destructor.

Definition at line 79 of file qwt_arrow_button.cpp.

πŸ‘‘ Member Function Documentation πŸ‘‘

⭐ QSize QwtArrowButton::arrowSize (Qt::ArrowType arrowType, const QSize & boundingSize) const [protected], [virtual] ⭐

Calculate the size for a arrow that fits into a rectangle of a given size.

Parameters

  • arrowType β€” Arrow type
  • boundingSize β€” Bounding size

Returns

  • Size of the arrow

Definition at line 296 of file qwt_arrow_button.cpp.

🧭 Qt::ArrowType QwtArrowButton::arrowType () const 🧭

The direction of the arrows.

Definition at line 88 of file qwt_arrow_button.cpp.

🎯 void QwtArrowButton::drawArrow (QPainter * painter, const QRect & r, Qt::ArrowType arrowType) const [protected], [virtual] 🎯

Draw an arrow int a bounding rectangle.

Parameters

  • painter β€” Painter
  • r β€” Rectangle where to paint the arrow
  • arrowType β€” Arrow type

Definition at line 215 of file qwt_arrow_button.cpp.

🏷️ void QwtArrowButton::drawButtonLabel (QPainter * painter) [protected], [virtual] 🏷️

Draw the button label.

Parameters

  • painter β€” Painter

See also: The Qt Manual for QPushButton

Definition at line 143 of file qwt_arrow_button.cpp.

⌨️ void QwtArrowButton::keyPressEvent (QKeyEvent * event) [override], [protected], [virtual] ⌨️

autoRepeat for the space keys

Definition at line 326 of file qwt_arrow_button.cpp.

πŸ“ QRect QwtArrowButton::labelRect () const [protected], [virtual] πŸ“

Returns

  • the bounding rectangle for the label

Definition at line 104 of file qwt_arrow_button.cpp.

πŸ“ QSize QwtArrowButton::minimumSizeHint () const [override], [virtual] πŸ“

Return a minimum size hint.

Definition at line 268 of file qwt_arrow_button.cpp.

πŸ”’ int QwtArrowButton::num () const πŸ”’

The number of arrows.

Definition at line 96 of file qwt_arrow_button.cpp.

πŸ–ŒοΈ void QwtArrowButton::paintEvent (QPaintEvent * event) [override], [protected], [virtual] πŸ–ŒοΈ

Paint event handler.

Parameters

  • event β€” Paint event

Definition at line 130 of file qwt_arrow_button.cpp.

πŸ“¦ QSize QwtArrowButton::sizeHint () const [override], [virtual] πŸ“¦

Returns

  • a size hint

Definition at line 259 of file qwt_arrow_button.cpp.

🧚 Author 🧚

Generated automatically by Doxygen for Qwt User's Guide from the source code.


okay that's the whole QwtArrowButton(3) page, bestie πŸ’– source/version vibe: Qwt User's Guide; footer page: QwtArrowButton(3); date: not listed on this footer, so no date to give you 😭 β€” slay, bye! 🌈

πŸ“¦ where this page comes from