QwtCompassMagnetNeedle(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– QwtCompassMagnetNeedle(3) πŸ’–

okay bestie, welcome to the Qwt User's Guide β€” yes that's the manual this page lives in, and yes, this whole page is about one (1) extremely cute little compass needle. her name is QwtCompassMagnetNeedle and she is, lowkey, iconic. 🧭✨


πŸŽ€ NAME πŸŽ€

QwtCompassMagnetNeedle β€” she's a needle. a magnet one. for compasses. that's the whole vibe. 🧲


✨ SYNOPSIS ✨

#include <qwt_dial_needle.h>

Inherits QwtDialNeedle. so she's got the whole QwtDialNeedle family energy going on, and she's out here doing her own thing on top of it. 🫢

🌈 Public Types

  • enum Style { TriangleStyle, ThinStyle } β€” two whole lewks. pick your fighter.

πŸ’… Public Member Functions

  • QwtCompassMagnetNeedle (Style=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red)
  • virtual void draw (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const

⭐ Static Public Member Functions

  • static void drawThinNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)
  • static void drawTriangleNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)

πŸ™ˆ Static Protected Member Functions

  • static void drawPointer (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint &center, int length, int width, double direction)

🌸 Detailed Description 🌸

A magnet needle for compass widgets. fr fr, that's her job description and she ate.

A magnet needle points to two opposite directions indicating north and south. two directions!! she's pointing at BOTH of them, at the same time, no cap. main character behavior honestly. πŸ§­πŸ’–

The following colors are used:

  • QColorGroup::Light β€” used for pointing south ❄️
  • QColorGroup::Dark β€” used for pointing north πŸ”₯
  • QColorGroup::Base β€” the knob (ThinStyle only). yeah she's got a lil knob and only the thin girlies get to have it. πŸŽ€

See also: QwtDial, QwtCompass


πŸ‘‘ Member Function Documentation πŸ‘‘

πŸ¦‹ void QwtCompassMagnetNeedle::draw (QPainter *painter, const QPoint &center, int length, double direction, QPalette::ColorGroup colorGroup = QPalette::Active) const [virtual]

Draw the needle. that's it. that's the function. she draws herself and she slays.

Parameters:

  • painter β€” Painter
  • center β€” Center of the dial, start position for the needle
  • length β€” Length of the needle
  • direction β€” Direction of the needle, in degrees counter clockwise
  • colorGroup β€” Color group, used for painting

Implements QwtDialNeedle. πŸ’«


πŸ’œ void QwtCompassMagnetNeedle::drawPointer (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint &center, int length, int width, double direction) [static], [protected]

Draw a compass needle. yes another one, she has MULTIPLE needle-drawing methods, we love a multi-talented queen.

Parameters:

  • painter β€” Painter
  • brush β€” Brush
  • colorOffset β€” Color offset
  • center β€” Center, where the needle starts
  • length β€” Length of the needle
  • width β€” Width of the needle
  • direction β€” Direction

πŸ“ void QwtCompassMagnetNeedle::drawThinNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint &center, int length, double direction) [static]

Draw a compass needle. this is the ThinStyle one, the skinny legend. ✨

Parameters:

  • painter β€” Painter
  • palette β€” Palette
  • colorGroup β€” Color group
  • center β€” Center, where the needle starts
  • length β€” Length of the needle
  • direction β€” Direction

🌈 void QwtCompassMagnetNeedle::drawTriangleNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint &center, int length, double direction) [static]

Draw a compass needle. and this is the TriangleStyle one, all pointy and dramatic. πŸ”Ί

Parameters:

  • painter β€” Painter
  • palette β€” Palette
  • colorGroup β€” Color group
  • center β€” Center, where the needle starts
  • length β€” Length of the needle
  • direction β€” Direction

🫢 Author 🫢

Generated automatically by Doxygen for Qwt User's Guide from the source code. not a human author, just a robot doing its lil thing. respect. πŸ€–πŸ’•


okay that's the whole page bestie, go forth and point north AND south simultaneously, it's giving compass, it's giving balance, it's giving slay πŸ§­πŸ’…

Version 5.2.3 🌸 Tue Nov 20 2012 β€” yeah she's an old soul and that's fine, vintage is a vibe. mwah πŸ’‹ QwtCompassMagnetNeedle(3) out. πŸŽ€

πŸ“¦ where this page comes from