]> Shamusworld >> Repos - ttedit/blob - src/graphicprimitives.h
Repurposed code in bezier.h/cpp, added middle button scrolling
[ttedit] / src / graphicprimitives.h
1 //\r
2 // Graphics primitives\r
3 //\r
4 // Various graphic functions that are slightly more complex than those that\r
5 // come with various widget libraries.\r
6 //\r
7 \r
8 #ifndef __GRAPHICPRIMITIVES_H__\r
9 #define __GRAPHICPRIMITIVES_H__\r
10 \r
11 #include <wx/wx.h>                                                              // For device context\r
12 #include "types.h"                                                              // For int32\r
13 \r
14 struct point\r
15 {\r
16         float x, y;\r
17 \r
18         point(float xx = 0, float yy = 0): x(xx), y(yy) {}\r
19 };\r
20 \r
21 void Bezier(wxDC &, point, point, point);\r
22 void DrawRoundDot(wxDC &, int32, int32);\r
23 void DrawSquareDot(wxDC &, int32, int32);\r
24 void DrawRoundDotN(wxDC &, int32, int32, uint32);\r
25 void DrawSquareDotN(wxDC &, int32, int32, uint32);\r
26 \r
27 #endif  // __GRAPHICPRIMITIVES_H__\r