QwtCompassWindArrow(3)

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

πŸ’¨ QwtCompassWindArrow β€” the QwtCompassWindArrow(3) page πŸ’¨

okay bestie so we're in the Qwt User's Guide manual, page 3 of the QwtCompassWindArrow saga, and it's giving "wind vane but make it C++" 🌬️✨


✨ NAME ✨

QwtCompassWindArrow β€” like, that's the whole name, no subtitle, no extra lore, just vibes πŸ’…


🌸 SYNOPSIS 🌸

#include <qwt_dial_needle.h>

Inherits QwtDialNeedle. Yeah she's part of the family, we love an inheritance moment 🫢

πŸŽ€ Public Types πŸŽ€

  • enum Style { Style1, Style2 } β€” literally just two styles. pick your fighter.

πŸ¦‹ Public Member Functions πŸ¦‹

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

πŸ’œ Static Public Member Functions πŸ’œ

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

🌈 Additional Inherited Members 🌈

(yes queen, she also got the whole inherited set from QwtDialNeedle β€” no cap, they're just not re-listed here πŸ’–)


πŸ‘‘ Detailed Description πŸ‘‘

An indicator for the wind direction. That's it. That's the job. main character energy fr fr πŸŒͺ️

QwtCompassWindArrow shows the direction where the wind comes from β€” so like, the origin, the source, the birthplace of the breeze πŸ’¨

  • QColorGroup::Light β€” Used for Style1, or the light half of Style2
  • QColorGroup::Dark β€” Used for the dark half of Style2

See also:

  • QwtDial
  • QwtCompass

πŸ› οΈ Constructor & Destructor Documentation πŸ› οΈ

QwtCompassWindArrow::QwtCompassWindArrow (Stylestyle, const QColor &light = Qt::white, const QColor &dark = Qt::gray)

Constructor ✨ (yes, she's constructed, she's built different)

Parameters:

  • style β€” Arrow style
  • light β€” Light color
  • dark β€” Dark color

πŸ’… Member Function Documentation πŸ’…

void QwtCompassWindArrow::draw (QPainter *painter, const QPoint &center, intlength, doubledirection, QPalette::ColorGroupcolorGroup = QPalette::Active) const [virtual]

Draw the needle πŸͺ‘ okay so this is THE moment, this is where the needle actually gets drawn

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 QwtCompassWindArrow::drawStyle1Needle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint &center, intlength, doubledirection) [static]

Draw a compass needle 🧭 (Style 1 edition, iconic behavior)

Parameters:

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

void QwtCompassWindArrow::drawStyle2Needle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint &center, intlength, doubledirection) [static]

Draw a compass needle 🧭 (Style 2 edition, the sequel, the encore, the remix πŸ’–)

Parameters:

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

🌟 Author 🌟

Generated automatically by Doxygen for Qwt User's Guide from the source code. (not a human author, just Doxygen doing its lil autopilot thing, we stan a generator πŸ€–πŸ’•)


and that's the whole page bestie, you ate that πŸ’…βœ¨

okay so before you go β€” this was Version 5.2.3, dated Tue Nov 20 2012, from the Qwt User's Guide, and it was QwtCompassWindArrow(3) the whole time πŸŒˆβ­πŸ’– bye ily, go draw a wind arrow πŸ“πŸ§š

πŸ“¦ where this page comes from