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 overridevirtual QSize minimumSizeHint () const overrideβ Return a minimum size hint.
π Protected Member Functions π
virtual void paintEvent (QPaintEvent *) overridevirtual void keyPressEvent (QKeyEvent *) overrideβ autoRepeat for the space keysvirtual void drawButtonLabel (QPainter *)β Draw the button label.virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) constvirtual QRect labelRect () constvirtual 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 arrowsarrowTypeβ seeQt::ArrowTypein 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 typeboundingSizeβ 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β Painterrβ Rectangle where to paint the arrowarrowTypeβ 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
- 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