summaryrefslogtreecommitdiffstats
path: root/tdegtk/tqtcairopainter.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r--tdegtk/tqtcairopainter.h35
1 files changed, 25 insertions, 10 deletions
diff --git a/tdegtk/tqtcairopainter.h b/tdegtk/tqtcairopainter.h
index aa45e9b..fa051c2 100644
--- a/tdegtk/tqtcairopainter.h
+++ b/tdegtk/tqtcairopainter.h
@@ -24,22 +24,37 @@
#define TQT_NO_COMPAT_NAMES
#include "ntqpaintdevice.h"
#include "ntqbuffer.h"
+#include "ntqcolor.h"
+#include "ntqpen.h"
+#include "ntqbrush.h"
#include <cairo.h>
class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class
{
-public:
- TQt3CairoPaintDevice( cairo_surface_t * );
- ~TQt3CairoPaintDevice();
+ public:
+ TQt3CairoPaintDevice( cairo_surface_t * );
+ ~TQt3CairoPaintDevice();
+
+ protected:
+ bool cmd( int, TQPainter *, TQPDevCmdParam * );
+ int metric( int ) const;
+
+ private:
+ void updatePen(bool backgroundStroke=FALSE);
+ void dualStrokePen();
-protected:
- bool cmd( int, TQPainter *, TQPDevCmdParam * );
- int metric( int ) const;
-
-private:
- cairo_surface_t *m_surface;
- cairo_t *m_painter;
+ void updateBrush(bool backgroundStroke=FALSE);
+ void dualStrokeBrush();
+
+ private:
+ cairo_surface_t *m_surface;
+ cairo_t *m_painter;
+
+ TQColor m_bgColor;
+ TQt::BGMode m_bgColorMode;
+ TQPen m_pen;
+ TQBrush m_brush;
};
#endif // TDEQT4PAINTER_H