]> Shamusworld >> Repos - ttedit/blobdiff - src/graphicprimitives.h
Converted from Qt4 to Qt5.
[ttedit] / src / graphicprimitives.h
index 81e15abf8da68afecde87fafbda8549de4d0e0ea..9b2de448b8deac80c20e3645993c99e03793c015 100755 (executable)
@@ -8,8 +8,9 @@
 #ifndef __GRAPHICPRIMITIVES_H__
 #define __GRAPHICPRIMITIVES_H__
 
-#include <wx/wx.h>                                                             // For device context
+#include <QtGui>                                                               // For QPainter
 #include "types.h"                                                             // For int32
+#include "glyphpoints.h"                                               // For IPoint
 
 struct point
 {
@@ -18,10 +19,11 @@ struct point
        point(float xx = 0, float yy = 0): x(xx), y(yy) {}
 };
 
-void Bezier(wxDC &, point, point, point);
-void DrawRoundDot(wxDC &, int32, int32);
-void DrawSquareDot(wxDC &, int32, int32);
-void DrawRoundDotN(wxDC &, int32, int32, uint32);
-void DrawSquareDotN(wxDC &, int32, int32, uint32);
+void Bezier(QPainter &, point, point, point);
+void Bezier(QPainter &, IPoint, IPoint, IPoint);
+void DrawRoundDot(QPainter &, int32, int32);
+void DrawSquareDot(QPainter &, int32, int32);
+void DrawRoundDotN(QPainter &, int32, int32, uint32);
+void DrawSquareDotN(QPainter &, int32, int32, uint32);
 
 #endif // __GRAPHICPRIMITIVES_H__