|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
A drawing primitive for columns. More...
#include <qwt_column_symbol.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | Style { NoStyle = -1 , Box , UserStyle = 1000 } |
| enum | FrameStyle { NoFrame , Plain , Raised } |
Public Member Functions | |
| QwtColumnSymbol (Style=NoStyle) | |
| Constructor with style parameter. | |
| virtual | ~QwtColumnSymbol () |
| Destructor. | |
| void | setFrameStyle (FrameStyle) |
| Set the frame style. | |
| FrameStyle | frameStyle () const |
| Return the frame style. | |
| void | setLineWidth (int width) |
| Set the line width for the frame. | |
| int | lineWidth () const |
| Return the line width. | |
| void | setStyle (Style) |
| Set the column style. | |
| Style | style () const |
| Return the column style. | |
| void | setPen (const QPen &pen) |
| Set the outline pen. | |
| QPen | pen () const |
| Return the outline pen. | |
| void | setBrush (const QBrush &b) |
| Set the fill brush. | |
| QBrush | brush () const |
| Return the fill brush. | |
| virtual void | draw (QPainter *, const QwtColumnRect &) const |
| Draw the column symbol. | |
Protected Member Functions | |
| void | drawBox (QPainter *, const QwtColumnRect &) const |
A drawing primitive for columns.
Frame Style used in Box style()
| Enumerator | |
|---|---|
| NoFrame | No frame |
| Plain | A plain frame style |
| Raised | A raised frame style |
Style
| Enumerator | |
|---|---|
| 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. |
Constructor with style parameter.
Constructor.
|
virtual |
Destructor.
Destructor .
| QBrush QwtColumnSymbol::brush | ( | ) | const |
Return the fill brush.
|
virtual |
Draw the column symbol.
Draw the symbol depending on its style.
| QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle | ( | ) | const |
Return the frame style.
Return current frame style that is used for the Box style.
| int QwtColumnSymbol::lineWidth | ( | ) | const |
Return the line width.
Return line width of the frame that is used for the Box style.
| QPen QwtColumnSymbol::pen | ( | ) | const |
Return the outline pen.
| void QwtColumnSymbol::setBrush | ( | const QBrush & | b | ) |
Set the fill brush.
Specify the fill brush.
| void QwtColumnSymbol::setFrameStyle | ( | FrameStyle | frameStyle | ) |
Set the frame style.
Set the frame style that is used for the Box style.
| void QwtColumnSymbol::setLineWidth | ( | int | width | ) |
Set the line width for the frame.
Set the line width of the frame that is used for the Box style.
| void QwtColumnSymbol::setPen | ( | const QPen & | pen | ) |
Set the outline pen.
Specify the outline pen.
| void QwtColumnSymbol::setStyle | ( | Style | style | ) |
Set the column style.
Specify the symbol style.
| QwtColumnSymbol::Style QwtColumnSymbol::style | ( | ) | const |
Return the column style.
Return current symbol style.