49 (*iterator)->pathdata.Types = heap_alloc_zero(
size);
50 (*iterator)->pathdata.Points = heap_alloc_zero(
size *
sizeof(
PointF));
54 (*iterator)->pathdata.Count =
size;
57 (*iterator)->pathdata.Types =
NULL;
58 (*iterator)->pathdata.Points =
NULL;
59 (*iterator)->pathdata.Count = 0;
62 (*iterator)->subpath_pos = 0;
63 (*iterator)->marker_pos = 0;
64 (*iterator)->pathtype_pos = 0;
71 TRACE(
"(%p)\n", iter);
86 TRACE(
"(%p, %p, %p, %p, %d, %d)\n",
iterator, resultCount,
points,
types,
87 startIndex, endIndex);
92 if(endIndex >
iterator->pathdata.Count - 1 || startIndex < 0 ||
93 endIndex < startIndex){
98 *resultCount = endIndex - startIndex + 1;
102 *resultCount *
sizeof(
PointF));
146 INT* startIndex,
INT* endIndex)
150 TRACE(
"(%p, %p, %p, %p)\n",
iterator, resultCount, startIndex, endIndex);
152 if(!
iterator || !startIndex || !endIndex)
159 for(
i =
iterator->marker_pos + 1; i < iterator->pathdata.Count;
i++){
163 if(
iterator->marker_pos > 0) (*startIndex)++;
165 *resultCount= *endIndex - *startIndex + 1;
200 INT *resultCount,
INT* startIndex,
INT* endIndex,
BOOL* isClosed)
204 TRACE(
"(%p, %p, %p, %p, %p)\n",
iterator, resultCount, startIndex,
207 if(!
iterator || !startIndex || !endIndex || !isClosed || !resultCount)
219 *startIndex = *endIndex = *resultCount = 0;
224 *startIndex =
iterator->subpath_pos;
232 *resultCount = *endIndex - *startIndex + 1;
272 if((
count < 0) || !resultCount)
313 if(!iter || !
result || !closed)
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
GpStatus WINGDIPAPI GdipResetPath(GpPath *path)
GpStatus WINGDIPAPI GdipPathIterNextMarkerPath(GpPathIterator *iterator, INT *result, GpPath *path)
GpStatus WINGDIPAPI GdipPathIterGetCount(GpPathIterator *iterator, INT *count)
GpStatus WINGDIPAPI GdipPathIterGetSubpathCount(GpPathIterator *iterator, INT *count)
GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator *iter)
GpStatus WINGDIPAPI GdipPathIterHasCurve(GpPathIterator *iterator, BOOL *hasCurve)
GpStatus WINGDIPAPI GdipPathIterEnumerate(GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT count)
GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex, BOOL *isClosed)
GpStatus WINGDIPAPI GdipCreatePathIter(GpPathIterator **iterator, GpPath *path)
GpStatus WINGDIPAPI GdipPathIterNextSubpathPath(GpPathIterator *iter, INT *result, GpPath *path, BOOL *closed)
GpStatus WINGDIPAPI GdipPathIterIsValid(GpPathIterator *iterator, BOOL *valid)
GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator *iterator)
GpStatus WINGDIPAPI GdipPathIterNextPathType(GpPathIterator *iter, INT *result, BYTE *type, INT *start, INT *end)
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT startIndex, INT endIndex)
GpStatus WINGDIPAPI GdipPathIterNextMarker(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex)
BOOL lengthen_path(GpPath *path, INT len)
@ PathPointTypePathMarker
@ PathPointTypePathTypeMask
@ PathPointTypeCloseSubpath
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLsizei const GLfloat * points
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
#define memcpy(s1, s2, n)