10 #ifndef QWT_PLOT_CANVAS_H
11 #define QWT_PLOT_CANVAS_H
13 #include "qwt_global.h"
16 #include <qpainterpath.h>
89 HackStyledBackground = 4,
134 void setFocusIndicator( FocusIndicator );
135 FocusIndicator focusIndicator()
const;
137 void setBorderRadius(
double );
138 double borderRadius()
const;
140 QPainterPath borderPath(
const QRect &rect )
const;
141 QBitmap borderMask(
const QSize & )
const;
143 void setPaintAttribute( PaintAttribute,
bool on =
true );
144 bool testPaintAttribute( PaintAttribute )
const;
146 const QPixmap *backingStore()
const;
147 void invalidateBackingStore();
151 virtual bool event( QEvent * );
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 );