|
Qwt User's Guide 6.0.0
|
A drawing primitive for columns. More...
#include <qwt_column_symbol.h>
Public Types | |
| enum | Style { NoStyle = -1, Box, UserStyle = 1000 } |
| enum | FrameStyle { NoFrame, Plain, Raised } |
Public Member Functions | |
| QwtColumnSymbol (Style=NoStyle) | |
| virtual | ~QwtColumnSymbol () |
| void | setFrameStyle (FrameStyle style) |
| FrameStyle | frameStyle () const |
| void | setLineWidth (int width) |
| int | lineWidth () const |
| void | setPalette (const QPalette &) |
| const QPalette & | palette () const |
| void | setStyle (Style) |
| Style | style () const |
| virtual void | draw (QPainter *, const QwtColumnRect &) const |
Protected Member Functions | |
| void | drawBox (QPainter *, const QwtColumnRect &) const |
A drawing primitive for columns.
Frame Style used in Box style().
Style
| NoStyle |
No Style, the symbol draws nothing. |
| Box |
The column is painted with a frame depending on the frameStyle() and lineWidth() using the palette(). |
| UserStyle |
Styles >= QwtColumnSymbol::UserStyle are reserved for derived classes of QwtColumnSymbol that overload draw() with additional application specific symbol types. |
| QwtColumnSymbol::QwtColumnSymbol | ( | Style | style = NoStyle | ) |
| QwtColumnSymbol::~QwtColumnSymbol | ( | ) | [virtual] |
Destructor.
| void QwtColumnSymbol::draw | ( | QPainter * | painter, |
| const QwtColumnRect & | rect | ||
| ) | const [virtual] |
Draw the symbol depending on its style.
| painter | Painter |
| rect | Directed rectangle |
| void QwtColumnSymbol::drawBox | ( | QPainter * | painter, |
| const QwtColumnRect & | rect | ||
| ) | const [protected] |
Draw the symbol when it is in Box style.
| painter | Painter |
| rect | Directed rectangle |
| QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle | ( | ) | const |
| int QwtColumnSymbol::lineWidth | ( | ) | const |
| const QPalette & QwtColumnSymbol::palette | ( | ) | const |
| void QwtColumnSymbol::setFrameStyle | ( | FrameStyle | frameStyle | ) |
Set the frame, that is used for the Box style.
| frameStyle | Frame style |
| void QwtColumnSymbol::setLineWidth | ( | int | width | ) |
Set the line width of the frame, that is used for the Box style.
| width | Width |
| void QwtColumnSymbol::setPalette | ( | const QPalette & | palette | ) |
| void QwtColumnSymbol::setStyle | ( | Style | style | ) |
| QwtColumnSymbol::Style QwtColumnSymbol::style | ( | ) | const |
1.7.3