]> Shamusworld >> Repos - ttedit/blobdiff - src/graphicprimitives.h
Repurposed code in bezier.h/cpp, added middle button scrolling
[ttedit] / src / graphicprimitives.h
diff --git a/src/graphicprimitives.h b/src/graphicprimitives.h
new file mode 100755 (executable)
index 0000000..dbc7a11
--- /dev/null
@@ -0,0 +1,27 @@
+//\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