diff options
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r-- | tdegtk/tqtcairopainter.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tdegtk/tqtcairopainter.h b/tdegtk/tqtcairopainter.h index 9700b63..ef3dbac 100644 --- a/tdegtk/tqtcairopainter.h +++ b/tdegtk/tqtcairopainter.h @@ -28,6 +28,7 @@ #include "ntqpen.h" #include "ntqbrush.h" #include "ntqfont.h" +#include "ntqimage.h" #include "ntqpainter.h" #include <cairo.h> @@ -44,6 +45,9 @@ class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class int metric( int ) const; private: + void resetIntermediateSurface(); + void transferIntermediateSurface(); + void updatePen(bool backgroundStroke=FALSE); void dualStrokePen(); @@ -64,18 +68,21 @@ class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class private: cairo_surface_t *m_surface; + cairo_surface_t *m_intermediateSurface; cairo_t *m_painter; + cairo_t *m_devicePainter; cairo_matrix_t m_worldMatrix; cairo_matrix_t m_viewportMatrix; bool m_worldMatrixEnabled; bool m_viewportMatrixEnabled; - + TQColor m_bgColor; TQt::BGMode m_bgColorMode; TQPen m_pen; TQBrush m_brush; TQPoint m_brushOrigin; TQFont m_font; + TQImage m_clipRegion; }; #endif // TDEQT4PAINTER_H |