QwtDialSimpleNeedle(3)

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

πŸ’– QwtDialSimpleNeedle πŸ’–

okay bestie, welcome to the Qwt User's Guide ✨ β€” this is the manual page for QwtDialSimpleNeedle, and yes she's a whole vibe. grab a strawberry πŸ“ and let's get into it.


🌸 NAME 🌸

QwtDialSimpleNeedle β€”

(no cap, that's literally all the original says here, she's mysterious like that πŸ’…)


✨ SYNOPSIS ✨

#include <qwt_dial_needle.h>

Inherits QwtDialNeedle. πŸ’œ

πŸŽ€ Public Types

  • enum Style { Arrow, Ray }

πŸŽ€ Public Member Functions

QwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor
    &mid=Qt::gray, const QColor &base=Qt::darkGray)
virtual void draw (QPainter *, const QPoint &, int length, double
    direction, QPalette::ColorGroup=QPalette::Active) const
void setWidth (int width)
int width () const

πŸŽ€ Static Public Member Functions

static void drawArrowNeedle (QPainter *, const QPalette &,
    QPalette::ColorGroup, const QPoint &, int length, int width, double
    direction, bool hasKnob)
static void drawRayNeedle (QPainter *, const QPalette &,
    QPalette::ColorGroup, const QPoint &, int length, int width, double
    direction, bool hasKnob)

πŸŽ€ Additional Inherited Members

(there's more where that came from, she's got family 🫢)


🌈 Detailed Description 🌈

A needle for dial widgets. That's the whole job, and she does it flawlessly, periodt. πŸ‘‘

The following colors are used:

  • QColorGroup::Mid β€” the Pointer πŸ’…
  • QColorGroup::base β€” the Knob πŸŽ€

See also: QwtDial, QwtCompass β€” go check them out, they're giving main character energy too πŸ¦‹


πŸ’– Constructor & Destructor Documentation πŸ’–

QwtDialSimpleNeedle::QwtDialSimpleNeedle (Style style, bool hasKnob = true, const QColor &mid = Qt::gray, const QColor &base = Qt::darkGray)

Constructor ✨ β€” she's born.

Parameters:

  • style β€” Style
  • hasKnob β€” With/Without knob
  • mid β€” Middle color
  • base β€” Base color

πŸ’… Member Function Documentation πŸ’…

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

Draw the needle πŸ–ŒοΈβœ¨

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 QwtDialSimpleNeedle::drawArrowNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint &center, int length, int width, double direction, bool hasKnob) [static]

Draw a needle looking like an arrow 🏹 β€” she's pointing, she's serving.

Parameters:

  • painter β€” Painter
  • palette β€” Palette
  • colorGroup β€” Color group
  • center β€” center of the needle
  • length β€” Length of the needle
  • width β€” Width of the needle
  • direction β€” Current Direction
  • hasKnob β€” With/Without knob

void QwtDialSimpleNeedle::drawRayNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint &center, int length, int width, double direction, bool hasKnob) [static]

Draw a needle looking like a ray β˜€οΈ β€” soft, radiant, iconic.

Parameters:

  • painter β€” Painter
  • palette β€” Palette
  • colorGroup β€” Color group
  • center β€” center of the needle
  • length β€” Length of the needle
  • width β€” Width of the needle
  • direction β€” Current Direction
  • hasKnob β€” With/Without knob

void QwtDialSimpleNeedle::setWidth (int width)

Set the width of the needle πŸ“ β€” glow-up for the pointer.

Parameters:

  • width β€” Width

See also: width()


int QwtDialSimpleNeedle::width () const

Returns: the width of the needle 🌸

See also: setWidth()


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for Qwt User's Guide from the source code. (not me writing it by hand, she's algorithmically gorgeous fr fr πŸ’€βœ¨)


and that's the whole page bestie, no notes, she ate πŸ’…

okay so final sign-off, iykyk: this is Version 5.2.3, dated Tue Nov 20 2012 🌈 β€” yeah she's vintage, vintage is chic, obsessed. bye babe πŸ’–πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from