10 #ifndef QWT_PLOT_CANVAS_H
11 #define QWT_PLOT_CANVAS_H
13 #include "qwt_global.h"
15 #include <qpainterpath.h>
31 Q_PROPERTY(
double borderRadius READ borderRadius WRITE setBorderRadius )
89 HackStyledBackground = 4,
134 void setFocusIndicator( FocusIndicator );
135 FocusIndicator focusIndicator()
const;
137 void setBorderRadius(
double );
138 double borderRadius()
const;
140 void setPaintAttribute( PaintAttribute,
bool on =
true );
141 bool testPaintAttribute( PaintAttribute )
const;
143 const QPixmap *backingStore()
const;
144 void invalidateBackingStore();
146 virtual bool event( QEvent * );
148 Q_INVOKABLE QPainterPath borderPath(
const QRect & )
const;
154 virtual void paintEvent( QPaintEvent * );
155 virtual void resizeEvent( QResizeEvent * );
157 virtual void drawFocusIndicator( QPainter * );
158 virtual void drawBorder( QPainter * );
160 void updateStyleSheetInfo();
163 void drawCanvas( QPainter *,
bool withBackground );