basictoolsplugin.h Example File | Qt 4.8 (original) (raw)

tools/plugandpaintplugins/basictools/basictoolsplugin.h

#ifndef BASICTOOLSPLUGIN_H #define BASICTOOLSPLUGIN_H

#include #include #include #include #include

#include <plugandpaint/interfaces.h>

class BasicToolsPlugin : public QObject, public BrushInterface, public ShapeInterface, public FilterInterface { Q_OBJECT Q_INTERFACES(BrushInterface ShapeInterface FilterInterface)

public:

[QStringList](qstringlist.html) brushes() const;
[QRect](qrect.html) mousePress(const [QString](qstring.html) &brush, [QPainter](qpainter.html) &painter,
                 const [QPoint](qpoint.html) &pos);
[QRect](qrect.html) mouseMove(const [QString](qstring.html) &brush, [QPainter](qpainter.html) &painter,
                const [QPoint](qpoint.html) &oldPos, const [QPoint](qpoint.html) &newPos);
[QRect](qrect.html) mouseRelease(const [QString](qstring.html) &brush, [QPainter](qpainter.html) &painter,
                   const [QPoint](qpoint.html) &pos);


[QStringList](qstringlist.html) shapes() const;
[QPainterPath](qpainterpath.html) generateShape(const [QString](qstring.html) &shape, [QWidget](qwidget.html) *parent);


[QStringList](qstringlist.html) filters() const;
[QImage](qimage.html) filterImage(const [QString](qstring.html) &filter, const [QImage](qimage.html) &image,
                   [QWidget](qwidget.html) *parent);

};

#endif

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.