27#ifndef QWT_DIAL_NEEDLE_H
28#define QWT_DIAL_NEEDLE_H
30#include "qwt_global.h"
51 virtual void setPalette(
const QPalette&);
53 const QPalette& palette()
const;
56 void setFlatStyle(
bool);
58 bool flatStyle()
const;
62 draw(QPainter*,
const QPointF& center,
double length,
double direction, QPalette::ColorGroup = QPalette::Active)
const;
80 virtual void drawNeedle(QPainter* painter,
double length, QPalette::ColorGroup colorGroup)
const = 0;
82 virtual void drawKnob(QPainter*,
double width,
const QBrush&,
bool sunken)
const;
117 QwtDialSimpleNeedle(Style,
bool hasKnob =
true,
const QColor& mid = Qt::gray,
const QColor& base = Qt::darkGray);
120 void setWidth(
double width);
122 double width()
const;
125 virtual void drawNeedle(QPainter*,
double length, QPalette::ColorGroup)
const override;
160 QwtCompassMagnetNeedle(Style = TriangleStyle,
const QColor& light = Qt::white,
const QColor& dark = Qt::red);
163 virtual void drawNeedle(QPainter*,
double length, QPalette::ColorGroup)
const override;
194 QwtCompassWindArrow(Style,
const QColor& light = Qt::white,
const QColor& dark = Qt::gray);
197 virtual void drawNeedle(QPainter*,
double length, QPalette::ColorGroup)
const override;
A magnet needle for compass widgets
Definition qwt_dial_needle.h:145
Style
Style of the needle
Definition qwt_dial_needle.h:151
An indicator for the wind direction
Definition qwt_dial_needle.h:179
Style
Style of the arrow
Definition qwt_dial_needle.h:185
Base class for needles that can be used in a QwtDial
Definition qwt_dial_needle.h:43
virtual void drawNeedle(QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0
Draw the needle
A needle for dial widgets
Definition qwt_dial_needle.h:102
Style
Style of the needle
Definition qwt_dial_needle.h:108