#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
49 (*iterator)->pathdata.Types = heap_alloc_zero(
size);
50 (*iterator)->pathdata.Points = heap_alloc_zero(
size *
sizeof(
PointF));
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 267 of file pathiterator.c.
269{
271
272 if((
count < 0) || !resultCount)
274
276 *resultCount = 0;
278 }
279
281}
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()
◆ 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
228
231
232 *resultCount = *endIndex - *startIndex + 1;
233
236 else
238
240}
@ PathPointTypeCloseSubpath
Referenced by GdipPathIterNextSubpathPath(), and test_nextsubpath().
◆ GdipPathIterNextSubpathPath()
Definition at line 306 of file pathiterator.c.
308{
310
312
313 if(!iter || !
result || !closed)
315
317
320
323
327 }
328
330}
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 |
| ) |
|