summaryrefslogtreecommitdiffstats
path: root/tdegtk/tqtcairopainter.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 00:03:40 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 00:03:40 -0500
commit52cddfb3039519e7745e770b5198ff43cb9d195f (patch)
tree801092a973d9bedecf211d74b2d51910ff85cff0 /tdegtk/tqtcairopainter.h
parent7d1ad9f6f50c3ba3829b14c0eb9a52836b8d7d5d (diff)
downloadgtk3-tqt-engine-52cddfb3039519e7745e770b5198ff43cb9d195f.tar.gz
gtk3-tqt-engine-52cddfb3039519e7745e770b5198ff43cb9d195f.zip
Add initial Pango font support
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r--tdegtk/tqtcairopainter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tdegtk/tqtcairopainter.h b/tdegtk/tqtcairopainter.h
index 7e43468..99a3dc2 100644
--- a/tdegtk/tqtcairopainter.h
+++ b/tdegtk/tqtcairopainter.h
@@ -27,8 +27,11 @@
#include "ntqcolor.h"
#include "ntqpen.h"
#include "ntqbrush.h"
+#include "ntqfont.h"
+#include "ntqpainter.h"
#include <cairo.h>
+#include <pango/pangocairo.h>
class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class
{
@@ -53,6 +56,9 @@ class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class
void drawArc(int x, int y, int w, int h, int a, int alen);
void drawPie(int x, int y, int w, int h, int a, int alen);
void drawChord(int x, int y, int w, int h, int a, int alen);
+
+ void pangoSetupTextPath(PangoLayout *layout, const char* text);
+ void drawText(TQPainter *p, int x, int y, const TQString &str, int pos, int len, TQPainter::TextDirection dir, bool baseline=TRUE);
private:
cairo_surface_t *m_surface;
@@ -62,6 +68,8 @@ class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class
TQt::BGMode m_bgColorMode;
TQPen m_pen;
TQBrush m_brush;
+ TQPoint m_brushOrigin;
+ TQFont m_font;
};
#endif // TDEQT4PAINTER_H