#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "objbase.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (gdiplus) |
| |
| GpStatus WINGDIPAPI | GdipCreatePathIter (GpPathIterator **iterator, GpPath *path) |
| |
| GpStatus WINGDIPAPI | GdipDeletePathIter (GpPathIterator *iter) |
| |
| GpStatus WINGDIPAPI | GdipPathIterCopyData (GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT startIndex, INT endIndex) |
| |
| GpStatus WINGDIPAPI | GdipPathIterHasCurve (GpPathIterator *iterator, BOOL *hasCurve) |
| |
| GpStatus WINGDIPAPI | GdipPathIterGetSubpathCount (GpPathIterator *iterator, INT *count) |
| |
| GpStatus WINGDIPAPI | GdipPathIterNextMarker (GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex) |
| |
| GpStatus WINGDIPAPI | GdipPathIterNextMarkerPath (GpPathIterator *iterator, INT *result, GpPath *path) |
| |
| GpStatus WINGDIPAPI | GdipPathIterNextSubpath (GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex, BOOL *isClosed) |
| |
| GpStatus WINGDIPAPI | GdipPathIterRewind (GpPathIterator *iterator) |
| |
| GpStatus WINGDIPAPI | GdipPathIterGetCount (GpPathIterator *iterator, INT *count) |
| |
| GpStatus WINGDIPAPI | GdipPathIterEnumerate (GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT count) |
| |
| GpStatus WINGDIPAPI | GdipPathIterIsValid (GpPathIterator *iterator, BOOL *valid) |
| |
| GpStatus WINGDIPAPI | GdipPathIterNextPathType (GpPathIterator *iter, INT *result, BYTE *type, INT *start, INT *end) |
| |
| GpStatus WINGDIPAPI | GdipPathIterNextSubpathPath (GpPathIterator *iter, INT *result, GpPath *path, BOOL *closed) |
| |
◆ GdipCreatePathIter()
Definition at line 34 of file pathiterator.c.
35{
37
39
42
45
48
51
54 (*iterator)->pathdata.Count =
size;
55 }
56 else{
57 (*iterator)->pathdata.Types =
NULL;
58 (*iterator)->pathdata.Points =
NULL;
59 (*iterator)->pathdata.Count = 0;
60 }
61
62 (*iterator)->subpath_pos = 0;
63 (*iterator)->marker_pos = 0;
64 (*iterator)->pathtype_pos = 0;
65
67}
#define memcpy(s1, s2, n)
Referenced by test_constructor_destructor(), test_getsubpathcount(), test_hascurve(), test_isvalid(), test_nextmarker(), test_nextmarkerpath(), test_nextpathtype(), test_nextsubpath(), and test_nextsubpathpath().
◆ GdipDeletePathIter()
◆ GdipPathIterCopyData()
Definition at line 83 of file pathiterator.c.
85{
86 TRACE(
"(%p, %p, %p, %p, %d, %d)\n",
iterator, resultCount,
points,
types,
87 startIndex, endIndex);
88
91
92 if(endIndex >
iterator->pathdata.Count - 1 || startIndex < 0 ||
93 endIndex < startIndex){
94 *resultCount = 0;
96 }
97
98 *resultCount = endIndex - startIndex + 1;
99
102 *resultCount *
sizeof(
PointF));
103
105}
GLsizei const GLfloat * points
Referenced by GdipPathIterEnumerate().
◆ GdipPathIterEnumerate()
Definition at line 270 of file pathiterator.c.
272{
274
275 if((
count < 0) || !resultCount)
277
279 *resultCount = 0;
281 }
282
284}
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT startIndex, INT endIndex)
GLuint GLuint GLsizei count
◆ GdipPathIterGetCount()
◆ GdipPathIterGetSubpathCount()
Definition at line 127 of file pathiterator.c.
128{
130
132
135
139 (*count)++;
140 }
141
143}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by test_getsubpathcount().
◆ GdipPathIterHasCurve()
◆ GdipPathIterIsValid()
◆ GdipPathIterNextMarker()
◆ GdipPathIterNextMarkerPath()
Definition at line 173 of file pathiterator.c.
175{
177
179
182
184
187
190
194 }
195
197}
GpStatus WINGDIPAPI GdipResetPath(GpPath *path)
GpStatus WINGDIPAPI GdipPathIterNextMarker(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex)
BOOL lengthen_path(GpPath *path, INT len)
Referenced by test_nextmarkerpath().
◆ GdipPathIterNextPathType()
Definition at line 298 of file pathiterator.c.
300{
303
306
309 if (
i >= stopIndex) {
312 }
315
317 if ((
i < stopIndex) &&
319 {
322 for ( ;
i < stopIndex;
i++) {
324 break;
325 }
326 }
331}
GLuint GLuint GLsizei GLenum type
Referenced by test_nextpathtype().
◆ GdipPathIterNextSubpath()
Definition at line 199 of file pathiterator.c.
201{
203
204 TRACE(
"(%p, %p, %p, %p, %p)\n",
iterator, resultCount, startIndex,
205 endIndex, isClosed);
206
207 if(!
iterator || !startIndex || !endIndex || !isClosed || !resultCount)
209
211
212
214 *resultCount = 0;
216 }
217
219 *startIndex = *endIndex = *resultCount = 0;
222 }
223
224 *startIndex =
iterator->subpath_pos;
225
227
230
233
234 *resultCount = *endIndex - *startIndex + 1;
235
238 else
240
242}
@ PathPointTypeCloseSubpath
Referenced by GdipPathIterNextSubpathPath(), test_nextpathtype(), and test_nextsubpath().
◆ GdipPathIterNextSubpathPath()
Definition at line 333 of file pathiterator.c.
335{
337
339
340 if(!iter || !
result || !closed)
342
344
347
350
354 }
355
357}
GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex, BOOL *isClosed)
Referenced by test_nextsubpathpath().
◆ GdipPathIterRewind()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
gdiplus |
| ) |
|