|
Eneboo - Documentación para desarrolladores
|
A magnet needle for compass widgets. Más...
#include <qwt_dial_needle.h>
Tipos públicos | |
| enum | Style { TriangleStyle, ThinStyle } |
| Style of the needle. Más... | |
Métodos públicos | |
| QwtCompassMagnetNeedle (Style=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red) | |
| Constructor. | |
| virtual void | draw (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const |
Métodos públicos estáticos | |
| static void | drawTriangleNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction) |
| static void | drawThinNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction) |
Métodos protegidos estáticos | |
| static void | drawPointer (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint ¢er, int length, int width, double direction) |
A magnet needle for compass widgets.
A magnet needle points to two opposite directions indicating north and south.
The following colors are used:
Style of the needle.
| QwtCompassMagnetNeedle::QwtCompassMagnetNeedle | ( | Style | style = TriangleStyle, |
| const QColor & | light = Qt::white, |
||
| const QColor & | dark = Qt::red |
||
| ) |
Constructor.
| void QwtCompassMagnetNeedle::draw | ( | QPainter * | painter, |
| const QPoint & | center, | ||
| int | length, | ||
| double | direction, | ||
| QPalette::ColorGroup | colorGroup = QPalette::Active |
||
| ) | const [virtual] |
Draw the needle
| 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 |
Implementa QwtDialNeedle.
| void QwtCompassMagnetNeedle::drawThinNeedle | ( | QPainter * | painter, |
| const QPalette & | palette, | ||
| QPalette::ColorGroup | colorGroup, | ||
| const QPoint & | center, | ||
| int | length, | ||
| double | direction | ||
| ) | [static] |
| void QwtCompassMagnetNeedle::drawTriangleNeedle | ( | QPainter * | painter, |
| const QPalette & | palette, | ||
| QPalette::ColorGroup | colorGroup, | ||
| const QPoint & | center, | ||
| int | length, | ||
| double | direction | ||
| ) | [static] |
1.7.4