summaryrefslogtreecommitdiffstats
path: root/tdegtk/tqtcairopainter.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 13:56:41 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 13:56:41 -0500
commitb646ed4c554e54e5354edc3dfdfc76edbb7656f0 (patch)
tree6c84014856390daf5a662b516cf91c8c1f00f1cc /tdegtk/tqtcairopainter.h
parentb6cb4612ca9c615323c0540a3b05edc24feec642 (diff)
downloadgtk3-tqt-engine-b646ed4c554e54e5354edc3dfdfc76edbb7656f0.tar.gz
gtk3-tqt-engine-b646ed4c554e54e5354edc3dfdfc76edbb7656f0.zip
Add intermediate surface
Enable clip regions
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r--tdegtk/tqtcairopainter.h9
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