QwtDialSimpleNeedle(3)
QwtDialSimpleNeedle(3) π
okay bestie, welcome to the Library Functions Manual page for QwtDialSimpleNeedle(3) β yes, the manual name is literally βLibrary Functions Manual,β and weβre folding that in right here at the top like a cute little name tag π. This is the Qwt Userβs Guide glow-up of a needle for dial widgets, and itβs giving main character energy β¨.
β¨ NAME β¨
QwtDialSimpleNeedle β a needle for dial widgets. Thatβs it, thatβs the vibe πͺ‘π.
πΈ SYNOPSIS πΈ
#include <qwt_dial_needle.h>
Inherits QwtDialNeedle.
So yeah, itβs part of the QwtDialNeedle family tree, no cap π.
π Public Types
enum Style { Arrow, Ray }
Style of the needle. Lowkey important, highkey aesthetic π .
π Public Member Functions
QwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor
&mid=Qt::gray, const QColor &base=Qt::darkGray)
void setWidth (double width)
double width () const
These are the public moves, bestie β constructor, set width, get width. Periodt π«Ά.
π Public Member Functions inherited from QwtDialNeedle
QwtDialNeedle ()β Constructor.virtual ~QwtDialNeedle ()β Destructor.virtual void setPalette (const QPalette &)const QPalette & palette () constvirtual void draw (QPainter *, const QPointF ¢er, double length, double direction, QPalette::ColorGroup=QPalette::Active) const
All that inherited goodness is still part of the package, okay? π
π¦ Protected Member Functions
virtual void drawNeedle (QPainter *, double length,
QPalette::ColorGroup) const override
Protected, override, and doing the actual needle-drawing duties. Iconic π₯.
π§ Protected Member Functions inherited from QwtDialNeedle
virtual void drawKnob (QPainter *, double width, const QBrush &, bool
sunken) const
Draw the knob. Thatβs the inherited protected helper, and yes, it said βknobβ ππ.
π Detailed Description π
A needle for dial widgets. Simple, iconic, very βIβm on a dial and I know itβ π .
The following colors are used:
QPalette::Midβ PointerQPalette::Baseβ Knob
See also: QwtDial, QwtCompass.
Definition at line 81 of file qwt_dial_needle.h.
π§ Member Enumeration Documentation π§
enum QwtDialSimpleNeedle::Style
Style of the needle. We love a style moment β¨.
Enumerator
Arrowβ Arrow.Rayβ A straight line from the center.
Definition at line 85 of file qwt_dial_needle.h.
π Constructor & Destructor Documentation π
QwtDialSimpleNeedle::QwtDialSimpleNeedle
QwtDialSimpleNeedle::QwtDialSimpleNeedle (Style style, bool hasKnob = true,
const QColor & mid = Qt::gray, const QColor & base = Qt::darkGray)
Constructor. The birth of a needle, honestly π«Ά.
Parameters:
styleβ StylehasKnobβ With/Without knobmidβ Middle colorbaseβ Base color
Definition at line 273 of file qwt_dial_needle.cpp.
π Member Function Documentation π
drawNeedle
void QwtDialSimpleNeedle::drawNeedle (QPainter * painter, double length,
QPalette::ColorGroup colorGroup) const [override], [protected],
[virtual]
Draw the needle. This is the protected virtual override moment, and it ate π₯.
Parameters:
painterβ Painterlengthβ Length of the needlecolorGroupβ Color group, used for painting
Implements QwtDialNeedle.
Definition at line 312 of file qwt_dial_needle.cpp.
setWidth
void QwtDialSimpleNeedle::setWidth (double width)
Set the width of the needle. Width queens, rise π.
Parameters:
widthβ Width
See also: width().
Definition at line 291 of file qwt_dial_needle.cpp.
width
double QwtDialSimpleNeedle::width () const
Returns the width of the needle. Very demure, very const, very βtell me my widthβ π.
See also: setWidth().
Definition at line 300 of file qwt_dial_needle.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
source/version vibes: Qwt Userβs Guide π«Ά β date: the footer didnβt hand me one, so Iβm not inventing it, bestie. No cap, no fake dates, just cute docs energy. 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