QwtCompassWindArrow(3)

🧭 QwtCompassWindArrow(3) β€” the wind-direction icon, bestie

okay so picture this: a little arrow on your compass dial that tells you where the wind is coming FROM. that's her. that's the whole vibe. this is from the Qwt User's Guide manual, and honestly she's iconic πŸ’¨πŸ’…


✨ NAME ✨

QwtCompassWindArrow β€” an indicator for the wind direction. literally her only job and she ate 🫢


🌸 SYNOPSIS 🌸

#include <qwt_dial_needle.h>

Inherits QwtDialNeedle. so she's got the family genes, yk? πŸ‘‘

πŸŽ€ Public Types

  • enum Style { Style1, Style2 } β€” the style of the arrow. two flavors, both slay.

πŸ’– Public Member Functions

  • QwtCompassWindArrow (Style, const QColor &light=Qt::white, const QColor &dark=Qt::gray) β€” the constructor, we'll get into her below πŸ“

πŸ¦‹ Public Member Functions inherited from QwtDialNeedle

  • QwtDialNeedle () β€” constructor.
  • virtual ~QwtDialNeedle () β€” destructor.
  • 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 one.

🌈 Protected Member Functions

  • virtual void drawNeedle (QPainter *, double length, QPalette::ColorGroup) const override β€” she overrides this one, noted ✍️

🧚 Protected Member Functions inherited from QwtDialNeedle

  • virtual void drawKnob (QPainter *, double width, const QBrush &, bool sunken) const β€” draw the knob.

πŸ’œ Detailed Description πŸ’œ

An indicator for the wind direction.

QwtCompassWindArrow shows the direction where the wind comes from. like she's not saying where it's going, she's saying where it came from. main character with a backstory fr 🌬️

here's how she uses your palette colors:

  • QPalette::Light β€” used for Style1, or the light half of Style2 ✨
  • QPalette::Dark β€” used for the dark half of Style2 πŸŒ‘
See also: QwtDial, QwtCompass

Definition at line 164 of file qwt_dial_needle.h. noted, saved, screenshot, framed πŸ“Έ


⭐ Member Enumeration Documentation ⭐

enum QwtCompassWindArrow::Style

Style of the arrow. that's it that's the description, we love a short queen πŸ’…

Enumerator

  • Style1 β€” a needle pointing to the center. yes queen, point inward 🎯
  • Style2 β€” a needle pointing to the center. ...yeah bestie the docs said the same thing twice and i'm not gonna lie to you 😭 both of them point to the center, that's what it says, i don't make the rules

Definition at line 168 of file qwt_dial_needle.h.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

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

Constructor. the birth of an icon honestly 🍼✨

Parameters

  • style β€” arrow style
  • light β€” light color
  • dark β€” dark color

Definition at line 409 of file qwt_dial_needle.cpp.


πŸ¦‹ Member Function Documentation πŸ¦‹

void QwtCompassWindArrow::drawNeedle (QPainter * painter, double length, QPalette::ColorGroup colorGroup) const [override], [protected], [virtual]

Draw the needle. the moment we've all been waiting for πŸ’«

Parameters

  • painter β€” painter
  • length β€” length of the needle
  • colorGroup β€” color group, used for painting

Implements QwtDialNeedle. she's fulfilling her inherited destiny 🫢

Definition at line 427 of file qwt_dial_needle.cpp.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. so nobody actually "wrote" this, a robot did, and honestly the robot understood the assignment πŸ€–πŸ’–


and that's the whole page bestie, no cap, every flag and line number intact, i would never do you dirty like that πŸ’€

kisses, stay windy πŸŒ¬οΈπŸ’‹

β€” ur fave, signing off on QwtCompassWindArrow(3) from the Qwt User's Guide (source: auto-generated Doxygen output, no date on the original footer, so i'm not gonna invent one, iykyk πŸŽ€βœ¨)

πŸ“¦ where this page comes from