Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

QwtDialSimpleNeedle Class Reference

Inheritance diagram for QwtDialSimpleNeedle:

QwtDialNeedle List of all members.

Detailed Description

A needle for dial widgets

The following colors are used:

See also:
QwtDial, QwtCompass


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

void drawArrowNeedle (QPainter *, const QColorGroup &, const QPoint &, int length, int width, double direction, bool hasKnob)
void drawRayNeedle (QPainter *, const QColorGroup &, const QPoint &, int length, int width, double direction, bool hasKnob)


Constructor & Destructor Documentation

QwtDialSimpleNeedle::QwtDialSimpleNeedle Style  ,
bool  hasKnob = TRUE,
const QColor &  mid = Qt::gray,
const QColor &  base = Qt::darkGray
 

Constructor.


Member Function Documentation

void QwtDialSimpleNeedle::draw QPainter *  painter,
const QPoint &  center,
int  length,
double  direction,
QPalette::ColorGroup  cg = 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
cg Color group, used for painting

Implements QwtDialNeedle.


Generated on Tue Nov 25 21:15:07 2003 for Qwt User's Guide by doxygen 1.3.4