summaryrefslogtreecommitdiffstats
path: root/tdegtk/tqtcairopainter.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-09-15 23:02:11 -0500
committerTimothy Pearson <[email protected]>2012-09-15 23:02:11 -0500
commitc2a1262df888a6c2913c608614f00dbb41233321 (patch)
treed3a4a39f5702fa403f0134a98322e2bb3b9316b7 /tdegtk/tqtcairopainter.h
parent827cba3a39a4afe688bfa848fc7dd7c5899b506f (diff)
downloadgtk3-tqt-engine-c2a1262df888a6c2913c608614f00dbb41233321.tar.gz
gtk3-tqt-engine-c2a1262df888a6c2913c608614f00dbb41233321.zip
Rectangle drawing via Cairo now functions
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