diff options
author | Timothy Pearson <[email protected]> | 2012-09-15 15:06:40 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-09-15 15:06:40 -0500 |
commit | 827cba3a39a4afe688bfa848fc7dd7c5899b506f (patch) | |
tree | d2fdfc1f057a2fa358dc7f418129e4fedf3678cb /tdegtk/tqtcairopainter.h | |
parent | 0bb5952228cc19402d90e0adf8c88c7ae4ddfd60 (diff) | |
download | gtk3-tqt-engine-827cba3a39a4afe688bfa848fc7dd7c5899b506f.tar.gz gtk3-tqt-engine-827cba3a39a4afe688bfa848fc7dd7c5899b506f.zip |
Add initial interface code skeleton for later development
Diffstat (limited to 'tdegtk/tqtcairopainter.h')
-rw-r--r-- | tdegtk/tqtcairopainter.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tdegtk/tqtcairopainter.h b/tdegtk/tqtcairopainter.h new file mode 100644 index 0000000..aa45e9b --- /dev/null +++ b/tdegtk/tqtcairopainter.h @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** Definition of TQt3CairoPaintDevice class +** +** Copyright (C) 2012 Timothy Pearson. All rights reserved. +** +** This file is part of the TDE Qt4 style interface +** +** This file may be used under the terms of the GNU General +** Public License versions 2.0 or 3.0 as published by the Free +** Software Foundation and appearing in the files LICENSE.GPL2 +** and LICENSE.GPL3 included in the packaging of this file. +** +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted +** herein. +** +**********************************************************************/ + +#ifndef TDEQT4PAINTER_H +#define TDEQT4PAINTER_H + +#define TQT_NO_COMPAT_NAMES +#include "ntqpaintdevice.h" +#include "ntqbuffer.h" + +#include <cairo.h> + +class Q_EXPORT TQt3CairoPaintDevice : public TQPaintDevice // picture class +{ +public: + TQt3CairoPaintDevice( cairo_surface_t * ); + ~TQt3CairoPaintDevice(); + +protected: + bool cmd( int, TQPainter *, TQPDevCmdParam * ); + int metric( int ) const; + +private: + cairo_surface_t *m_surface; + cairo_t *m_painter; +}; + +#endif // TDEQT4PAINTER_H |