QwtCompassMagnetNeedle(3)
π 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 ¢er, 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 (ThinStyleonly). 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 ¢er, 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 ¢er, 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 ¢er, 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 ¢er, 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
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms