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
30 InsufficientBuffer
= 5,
38 UnknownImageFormat
= 13,
39 FontFamilyNotFound
= 14,
40 FontStyleNotFound
= 15,
42 UnsupportedGdiplusVersion
= 17,
43 GdiplusNotInitialized
= 18,
44 PropertyNotFound
= 19,
45 PropertyNotSupported
= 20,
54 typedef BOOL (CALLBACK
* ImageAbort
)(VOID
*);
55 typedef ImageAbort DrawImageAbort
;
56 typedef ImageAbort GetThumbnailImageAbort
;
57 typedef struct GdiplusAbort GdiplusAbort
;
59 typedef BOOL (CALLBACK
* EnumerateMetafileProc
)(EmfPlusRecordType
,UINT
,UINT
,const BYTE
*,VOID
*);
76 Point(IN
const Point
&pt
)
82 /* FIXME: missing constructor that takes a Size */
84 Point(IN INT x
, IN INT y
)
90 Point
operator+(IN
const Point
& pt
) const
92 return Point(X
+ pt
.X
, Y
+ pt
.Y
);
95 Point
operator-(IN
const Point
& pt
) const
97 return Point(X
- pt
.X
, Y
- pt
.Y
);
100 BOOL
Equals(IN
const Point
& pt
)
102 return (X
== pt
.X
) && (Y
== pt
.Y
);
118 PointF(IN
const PointF
&pt
)
124 /* FIXME: missing constructor that takes a SizeF */
126 PointF(IN REAL x
, IN REAL y
)
132 PointF
operator+(IN
const PointF
& pt
) const
134 return PointF(X
+ pt
.X
, Y
+ pt
.Y
);
137 PointF
operator-(IN
const PointF
& pt
) const
139 return PointF(X
- pt
.X
, Y
- pt
.Y
);
142 BOOL
Equals(IN
const PointF
& pt
)
144 return (X
== pt
.X
) && (Y
== pt
.Y
);
176 PathData(const PathData
&);
177 PathData
& operator=(const PathData
&);
185 /* FIXME: missing the methods. */
195 /* FIXME: missing the methods. */
213 CharacterRange(INT first
, INT length
)
219 CharacterRange
& operator=(const CharacterRange
& rhs
)
230 #else /* end of c++ typedefs */
238 typedef struct PointF
244 typedef struct PathData
267 typedef struct CharacterRange
273 typedef enum Status Status
;
275 #endif /* end of c typedefs */