10 #ifndef QWT_PLOT_ABSTRACT_CANVAS_H 11 #define QWT_PLOT_ABSTRACT_CANVAS_H 58 void setBorderRadius(
double );
59 double borderRadius()
const;
62 QWidget* canvasWidget();
63 const QWidget* canvasWidget()
const;
65 virtual void drawFocusIndicator( QPainter* );
66 virtual void drawBorder( QPainter* );
67 virtual void drawBackground( QPainter* );
69 void fillBackground( QPainter* );
70 void drawCanvas( QPainter* );
71 void drawStyled( QPainter*,
bool );
72 void drawUnstyled( QPainter* );
74 QPainterPath canvasBorderPath(
const QRect& rect )
const;
75 void updateStyleSheetInfo();
130 void setFrameStyle(
int style );
131 int frameStyle()
const;
133 void setFrameShadow( QFrame::Shadow );
134 QFrame::Shadow frameShadow()
const;
136 void setFrameShape( QFrame::Shape );
137 QFrame::Shape frameShape()
const;
139 void setLineWidth(
int );
140 int lineWidth()
const;
142 void setMidLineWidth(
int );
143 int midLineWidth()
const;
145 int frameWidth()
const;
146 QRect frameRect()
const;
149 virtual void invalidateBackingStore() = 0;
153 void draw( QPainter* );
156 virtual void clearBackingStore() = 0;
162 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotAbstractGLCanvas::PaintAttributes )
Don't paint a focus indicator.
Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas.
FocusIndicator
Focus indicator The default setting is NoFocusIndicator.
Base class for all type of plot canvases.
PaintAttribute
Paint attributes.