Definition at line 28 of file qwt_plot_canvas.h.
Public Types | |
| enum | PaintAttribute { PaintCached = 1, PaintPacked = 2 } |
| enum | FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } |
Public Member Functions | |
| void | setFocusIndicator (FocusIndicator) |
| FocusIndicator | focusIndicator () const |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| bool | testPaintAttribute (PaintAttribute) const |
| QPixmap * | paintCache () |
| const QPixmap * | paintCache () const |
| void | invalidatePaintCache () |
Protected Member Functions | |
| QwtPlotCanvas (QwtPlot *) | |
| virtual | ~QwtPlotCanvas () |
| virtual void | hideEvent (QHideEvent *) |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | drawContents (QPainter *) |
| virtual void | drawFocusIndicator (QPainter *) |
| void | drawCanvas (QPainter *painter=NULL) |
Friends | |
| class | QwtPlot |
|
|
Focus indicator.
Definition at line 80 of file qwt_plot_canvas.h. |
|
|
Paint attributes.
The default setting enables PaintCached and PaintPacked
Definition at line 56 of file qwt_plot_canvas.h. |
|
|
Sets a cross cursor, enables QwtPlotCanvas::PaintCached.
Definition at line 50 of file qwt_plot_canvas.cpp. References setPaintAttribute(). |
|
|
Destructor.
Definition at line 72 of file qwt_plot_canvas.cpp. |
|
|
Draw the the canvas Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache.
Definition at line 256 of file qwt_plot_canvas.cpp. Referenced by drawContents(). |
|
|
Redraw the canvas, and focus rect.
Definition at line 233 of file qwt_plot_canvas.cpp. References drawCanvas(), drawFocusIndicator(), and focusIndicator(). Referenced by paintEvent(). |
|
|
Draw the focus indication.
Definition at line 327 of file qwt_plot_canvas.cpp. References QwtPainter::drawFocusRect(). Referenced by drawContents(). |
|
|
Definition at line 182 of file qwt_plot_canvas.cpp. Referenced by drawContents(). |
|
|
Invalidate the internal paint cache.
Definition at line 161 of file qwt_plot_canvas.cpp. Referenced by QwtPlot::replot(). |
|
|
Return the paint cache, might be null.
Definition at line 155 of file qwt_plot_canvas.cpp. |
|
|
Return the paint cache, might be null.
Definition at line 149 of file qwt_plot_canvas.cpp. Referenced by QwtPlotCurve::draw(). |
|
|
Set the focus indicator
Definition at line 172 of file qwt_plot_canvas.cpp. |
|
||||||||||||
|
Changing the paint attributes.
Definition at line 87 of file qwt_plot_canvas.cpp. Referenced by QwtPlotCanvas(). |
|
|
Test wether a paint attribute is enabled
Definition at line 143 of file qwt_plot_canvas.cpp. Referenced by QwtPlotCurve::draw(), and QwtPlot::replot(). |
1.4.4