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 &center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const β€” the drawing entry point, with center, length, direction, and a color group defaulting to QPalette::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 (ThinStyle only). Not me pointing out that TriangleStyle gets 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