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