]> Shamusworld >> Repos - ttedit/blobdiff - src/graphicprimitives.h
Fixed a handful of bugs related to clicking and dragging
[ttedit] / src / graphicprimitives.h
index dbc7a116f5a6f76867ed84b17fb95e0e56838d02..9b2de448b8deac80c20e3645993c99e03793c015 100755 (executable)
@@ -1,27 +1,29 @@
-//\r
-// Graphics primitives\r
-//\r
-// Various graphic functions that are slightly more complex than those that\r
-// come with various widget libraries.\r
-//\r
-\r
-#ifndef __GRAPHICPRIMITIVES_H__\r
-#define __GRAPHICPRIMITIVES_H__\r
-\r
-#include <wx/wx.h>                                                             // For device context\r
-#include "types.h"                                                             // For int32\r
-\r
-struct point\r
-{\r
-       float x, y;\r
-\r
-       point(float xx = 0, float yy = 0): x(xx), y(yy) {}\r
-};\r
-\r
-void Bezier(wxDC &, point, point, point);\r
-void DrawRoundDot(wxDC &, int32, int32);\r
-void DrawSquareDot(wxDC &, int32, int32);\r
-void DrawRoundDotN(wxDC &, int32, int32, uint32);\r
-void DrawSquareDotN(wxDC &, int32, int32, uint32);\r
-\r
-#endif // __GRAPHICPRIMITIVES_H__\r
+//
+// Graphics primitives
+//
+// Various graphic functions that are slightly more complex than those that
+// come with various widget libraries.
+//
+
+#ifndef __GRAPHICPRIMITIVES_H__
+#define __GRAPHICPRIMITIVES_H__
+
+#include <QtGui>                                                               // For QPainter
+#include "types.h"                                                             // For int32
+#include "glyphpoints.h"                                               // For IPoint
+
+struct point
+{
+       float x, y;
+
+       point(float xx = 0, float yy = 0): x(xx), y(yy) {}
+};
+
+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__