2 * Copyright (C) 2007 Google (Evan Stade)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _GDIPLUSTYPES_H
20 #define _GDIPLUSTYPES_H
24 typedef BOOL (CALLBACK * ImageAbort)(VOID *);
25 typedef ImageAbort DrawImageAbort;
33 InsufficientBuffer = 5,
41 UnknownImageFormat = 13,
42 FontFamilyNotFound = 14,
43 FontStyleNotFound = 15,
45 UnsupportedGdiplusVersion = 17,
46 GdiplusNotInitialized = 18,
47 PropertyNotFound = 19,
48 PropertyNotSupported = 20
61 Point(IN const Point &pt)
67 /* FIXME: missing constructor that takes a Size */
69 Point(IN INT x, IN INT y)
75 Point operator+(IN const Point& pt) const
77 return Point(X + pt.X, Y + pt.Y);
80 Point operator-(IN const Point& pt) const
82 return Point(X - pt.X, Y - pt.Y);
85 BOOL Equals(IN const Point& pt)
87 return (X == pt.X) && (Y == pt.Y);
103 PointF(IN const PointF &pt)
109 /* FIXME: missing constructor that takes a SizeF */
111 PointF(IN REAL x, IN REAL y)
117 PointF operator+(IN const PointF& pt) const
119 return PointF(X + pt.X, Y + pt.Y);
122 PointF operator-(IN const PointF& pt) const
124 return PointF(X - pt.X, Y - pt.Y);
127 BOOL Equals(IN const PointF& pt)
129 return (X == pt.X) && (Y == pt.Y);
161 PathData(const PathData &);
162 PathData& operator=(const PathData &);
170 /* FIXME: missing the methods. */
180 /* FIXME: missing the methods. */
190 #else /* end of c++ typedefs */
198 typedef struct PointF
204 typedef struct PathData
227 typedef enum Status Status;
229 #endif /* end of c typedefs */