#include <qwt_plot_abstract_canvas.h>
Classes | |
class | PrivateData |
Public Types | |
enum | FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } |
Focus indicator The default setting is NoFocusIndicator. More... | |
Public Member Functions | |
double | borderRadius () const |
FocusIndicator | focusIndicator () const |
QwtPlot * | plot () |
Return parent plot widget. More... | |
const QwtPlot * | plot () const |
Return parent plot widget. More... | |
QwtPlotAbstractCanvas (QWidget *canvasWidget) | |
void | setBorderRadius (double) |
void | setFocusIndicator (FocusIndicator) |
virtual | ~QwtPlotAbstractCanvas () |
Protected Member Functions | |
QPainterPath | borderPath2 (const QRect &rect) const |
QWidget * | canvasWidget () |
const QWidget * | canvasWidget () const |
virtual void | drawBackground (QPainter *) |
virtual void | drawBorder (QPainter *) |
void | drawCanvas (QPainter *) |
virtual void | drawFocusIndicator (QPainter *) |
void | drawStyled (QPainter *, bool) |
void | drawUnstyled (QPainter *) |
void | fillBackground (QPainter *) |
void | updateStyleSheetInfo () |
Update the cached information about the current style sheet. More... | |
Private Attributes | |
PrivateData * | d_data |
Definition at line 18 of file qwt_plot_abstract_canvas.h.
Focus indicator The default setting is NoFocusIndicator.
Enumerator | |
---|---|
NoFocusIndicator |
Don't paint a focus indicator. |
CanvasFocusIndicator |
The focus is related to the complete canvas. Paint the focus indicator using drawFocusIndicator() |
ItemFocusIndicator |
The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting. |
Definition at line 27 of file qwt_plot_abstract_canvas.h.
|
explicit |
Definition at line 566 of file qwt_plot_abstract_canvas.cpp.
|
virtual |
Definition at line 582 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 654 of file qwt_plot_abstract_canvas.cpp.
double QwtPlotAbstractCanvas::borderRadius | ( | ) | const |
Definition at line 649 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 905 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 910 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Definition at line 728 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Draw the border of the canvas
painter | Painter |
Reimplemented in QwtPlotCanvas.
Definition at line 663 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 837 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Draw the focus indication
painter | Painter |
Definition at line 623 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 779 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 738 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 733 of file qwt_plot_abstract_canvas.cpp.
QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator | ( | ) | const |
Definition at line 614 of file qwt_plot_abstract_canvas.cpp.
QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) |
Return parent plot widget.
Definition at line 588 of file qwt_plot_abstract_canvas.cpp.
const QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) | const |
Return parent plot widget.
Definition at line 594 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setBorderRadius | ( | double | radius | ) |
Set the radius for the corners of the border frame
radius | Radius of a rounded corner |
Definition at line 640 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setFocusIndicator | ( | FocusIndicator | focusIndicator | ) |
Set the focus indicator
Definition at line 604 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Update the cached information about the current style sheet.
Definition at line 869 of file qwt_plot_abstract_canvas.cpp.
|
private |
Definition at line 77 of file qwt_plot_abstract_canvas.h.