From b646ed4c554e54e5354edc3dfdfc76edbb7656f0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 17 Sep 2012 13:56:41 -0500 Subject: Add intermediate surface Enable clip regions --- tdegtk/tqtcairopainter.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tdegtk/tqtcairopainter.h') 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 @@ -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 -- cgit v1.2.1