]> Shamusworld >> Repos - ttedit/blob - src/graphicprimitives.h
Fixed a handful of bugs related to clicking and dragging
[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 <QtGui>                                                                // For QPainter
12 #include "types.h"                                                              // For int32
13 #include "glyphpoints.h"                                                // For IPoint
14
15 struct point
16 {
17         float x, y;
18
19         point(float xx = 0, float yy = 0): x(xx), y(yy) {}
20 };
21
22 void Bezier(QPainter &, point, point, point);
23 void Bezier(QPainter &, IPoint, IPoint, IPoint);
24 void DrawRoundDot(QPainter &, int32, int32);
25 void DrawSquareDot(QPainter &, int32, int32);
26 void DrawRoundDotN(QPainter &, int32, int32, uint32);
27 void DrawSquareDotN(QPainter &, int32, int32, uint32);
28
29 #endif  // __GRAPHICPRIMITIVES_H__