QwtCompassMagnetNeedle(3)
π§ QwtCompassMagnetNeedle(3) β the compass needle that ate π
okay bestie, sit down, because we're talking about QwtCompassMagnetNeedle, from the Qwt User's Guide manpage fam. It's a magnet needle for compass widgets, and honestly? It's giving main character energy in the needle department. π§²β¨
β¨ NAME β¨
QwtCompassMagnetNeedle β a magnet needle for compass widgets. That's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <qwt_dial_needle.h>
It Inherits QwtDialNeedle β so it gets all the parent-class glam handed down, no cap. π
π¦ Public Types
enum Style { TriangleStyle, ThinStyle }β the style of the needle. Two looks, both iconic in their own way.
π«Ά Public Member Functions
QwtCompassMagnetNeedle (Style=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red)β constructor. Defaults:TriangleStyle, light =Qt::white, dark =Qt::red. Yes, red-and-white compass realness. π₯
π Public Member Functions inherited from QwtDialNeedle
QwtDialNeedle ()β constructor.virtual ~QwtDialNeedle ()β destructor. Say bye bestie π«Άvirtual void setPalette (const QPalette &)β sets the palette.const QPalette & palette () constβ hands you back the palette.virtual void draw (QPainter *, const QPointF ¢er, double length, double direction, QPalette::ColorGroup=QPalette::Active) constβ the drawing entry point, withcenter,length,direction, and a color group defaulting toQPalette::Active.
π Protected Member Functions
virtual void drawNeedle (QPainter *, double length, QPalette::ColorGroup) const overrideβ the override that actually draws the needle.override, bestie. She means it. π
π Protected Member Functions inherited from QwtDialNeedle
virtual void drawKnob (QPainter *, double width, const QBrush &, bool sunken) constβ draw the knob. That's literally what it says. Knob. Drew. π«Ά
π Detailed Description π
A magnet needle for compass widgets. β
A magnet needle points to two opposite directions indicating north and south. So, like, one needle, two whole personalities. Main character energy fr fr. π§β¨
The following colors are used:
QPalette::Lightβ used for pointing south.QPalette::Darkβ used for pointing north.QPalette::Baseβ the knob (ThinStyleonly). Not me pointing out thatTriangleStylegets no knob π.
See also:QwtDial,QwtCompassβ go read those next, iykyk.
Definition at line 127 of file qwt_dial_needle.h. π
π§ Member Enumeration Documentation π§
enum QwtCompassMagnetNeedle::Style
Style of the needle. Fashion choices, but for geometry. π
Enumerator
TriangleStyleβ a needle with a triangular shape. Triangle slay. πΊThinStyleβ a thin needle. Minimalist queen. β¨
Definition at line 131 of file qwt_dial_needle.h. π
π Constructor & Destructor Documentation π
QwtCompassMagnetNeedle::QwtCompassMagnetNeedle (Style style = TriangleStyle, const QColor & light = Qt::white, const QColor & dark = Qt::red)
Constructor. That's it, that's the description β but look at those defaults: style = TriangleStyle, light = Qt::white, dark = Qt::red. Chef's kiss. ππ
Definition at line 350 of file qwt_dial_needle.cpp. π
π Member Function Documentation π
void QwtCompassMagnetNeedle::drawNeedle (QPainter * painter, double length, QPalette::ColorGroup colorGroup) const [override], [protected], [virtual]
Draw the needle. The whole point. The moment. π
Parameters:
painterβ painter. (She paints, bestie. π¨)lengthβ length of the needle.colorGroupβ color group, used for painting.
Implements QwtDialNeedle. β so it's fulfilling its parent's legacy, periodt. π
Definition at line 369 of file qwt_dial_needle.cpp. π
π» Author π»
Generated automatically by Doxygen for the Qwt User's Guide from the source code. Like, not even a human wrote this, it was Doxygen doing its little automatic thing. π€π
no cap: this whole page is auto-generated, so don't come for me about the formatting, blame Doxygen fr fr π
okay that's the whole manpage bestie, every flag, every enum, every inherited function, every line number β all present and accounted for πβ¨
this was QwtCompassMagnetNeedle(3) from the Qwt User's Guide, brought to you by Doxygen and the source code, dated with all the Qwt User's Guide footer realness β now go build a compass, you absolute icon π§π
π«Ά
π¦ 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