From c2a1262df888a6c2913c608614f00dbb41233321 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 15 Sep 2012 23:02:11 -0500 Subject: Rectangle drawing via Cairo now functions --- tdegtk/tqtcairopainter.h | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'tdegtk/tqtcairopainter.h') 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 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 -- cgit v1.2.3