diff options
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r-- | tdegtk/tqtcairopainter.h | 8 |
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 |