10 #ifndef QWT_DIAL_NEEDLE_H
11 #define QWT_DIAL_NEEDLE_H 1
13 #include "qwt_global.h"
34 virtual void setPalette(
const QPalette & );
35 const QPalette &palette()
const;
37 virtual void draw( QPainter *painter,
const QPointF ¢er,
38 double length,
double direction,
39 QPalette::ColorGroup = QPalette::Active )
const;
57 virtual void drawNeedle( QPainter *painter,
58 double length, QPalette::ColorGroup colorGroup )
const = 0;
60 virtual void drawKnob( QPainter *,
double width,
61 const QBrush &,
bool sunken )
const;
94 const QColor &mid = Qt::gray,
const QColor &base = Qt::darkGray );
96 void setWidth(
double width );
100 virtual void drawNeedle( QPainter *,
double length,
101 QPalette::ColorGroup )
const;
140 const QColor &light = Qt::white,
const QColor &dark = Qt::red );
144 double length, QPalette::ColorGroup )
const;
177 const QColor &dark = Qt::gray );
181 double length, QPalette::ColorGroup )
const;
virtual void drawNeedle(QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0
Draw the needle.
Style
Style of the needle.
Definition: qwt_dial_needle.h:130
A needle pointing to the center.
Definition: qwt_dial_needle.h:170
Style
Style of the arrow.
Definition: qwt_dial_needle.h:167
A magnet needle for compass widgets.
Definition: qwt_dial_needle.h:126
An indicator for the wind direction.
Definition: qwt_dial_needle.h:163
A needle with a triangular shape.
Definition: qwt_dial_needle.h:133
A needle for dial widgets.
Definition: qwt_dial_needle.h:80
Base class for needles that can be used in a QwtDial.
Definition: qwt_dial_needle.h:28
Style
Style of the needle.
Definition: qwt_dial_needle.h:84
Arrow.
Definition: qwt_dial_needle.h:87