QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPainterPathEngine.h
Go to the documentation of this file.
1 #ifndef RPAINTERPATHENGINE_H
2 #define RPAINTERPATHENGINE_H
3 
4 #include <QPaintEngine>
5 //#include "private/qtextengine_p.h"
6 //#include "private/qfontengine_p.h"
7 
8 #include "RPainterPath.h"
9 
15 class RPainterPathEngine : public QPaintEngine {
16 public:
18  virtual ~RPainterPathEngine();
19 
20  virtual bool begin(QPaintDevice *device);
21  virtual bool end();
22 
23  virtual void updateState(const QPaintEngineState &state);
24 
25  //virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
26 
27  virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr);
28 
29  virtual QPaintEngine::Type type() const;
30 
31  virtual void drawPath(const QPainterPath& path);
32 
33  QList<RPainterPath> getPainterPaths();
34 
35 private:
36  QList<RPainterPath> paths;
37 };
38 
39 #endif