Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
08508289
Commit
08508289
authored
Jul 16, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Initial path iterator implementation.
parent
d59fe31e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
2 deletions
+79
-2
Makefile.in
dlls/gdiplus/Makefile.in
+1
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+7
-0
pathiterator.c
dlls/gdiplus/pathiterator.c
+64
-0
gdiplusflat.h
include/gdiplusflat.h
+3
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+2
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
08508289
...
...
@@ -12,6 +12,7 @@ C_SRCS = \
graphics.c
\
graphicspath.c
\
matrix.c
\
pathiterator.c
\
pen.c
@MAKE_DLL_RULES@
...
...
dlls/gdiplus/gdiplus.spec
View file @
08508289
...
...
@@ -110,7 +110,7 @@
@ stub GdipCreatePathGradient
@ stub GdipCreatePathGradientFromPath
@ stub GdipCreatePathGradientI
@ st
ub GdipCreatePathIter
@ st
dcall GdipCreatePathIter(ptr ptr)
@ stdcall GdipCreatePen1(long long long ptr)
@ stub GdipCreatePen2
@ stub GdipCreateRegion
...
...
@@ -135,7 +135,7 @@
@ stdcall GdipDeleteGraphics(ptr)
@ stdcall GdipDeleteMatrix(ptr)
@ stdcall GdipDeletePath(ptr)
@ st
ub GdipDeletePathIter
@ st
dcall GdipDeletePathIter(ptr)
@ stdcall GdipDeletePen(ptr)
@ stub GdipDeletePrivateFontCollection
@ stub GdipDeleteRegion
...
...
dlls/gdiplus/gdiplus_private.h
View file @
08508289
...
...
@@ -83,4 +83,11 @@ struct GpMatrix{
REAL
matrix
[
6
];
};
struct
GpPathIterator
{
GpPathData
pathdata
;
INT
subpath_pos
;
/* for NextSubpath methods */
INT
marker_pos
;
/* for NextMarker methods */
INT
pathtype_pos
;
/* for NextPathType methods */
};
#endif
dlls/gdiplus/pathiterator.c
0 → 100644
View file @
08508289
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
iterator
,
GpPath
*
path
)
{
INT
size
;
if
(
!
iterator
||
!
path
)
return
InvalidParameter
;
size
=
path
->
pathdata
.
Count
;
*
iterator
=
GdipAlloc
(
sizeof
(
GpPathIterator
));
if
(
!*
iterator
)
return
OutOfMemory
;
(
*
iterator
)
->
pathdata
.
Types
=
GdipAlloc
(
size
);
(
*
iterator
)
->
pathdata
.
Points
=
GdipAlloc
(
size
*
sizeof
(
PointF
));
memcpy
((
*
iterator
)
->
pathdata
.
Types
,
path
->
pathdata
.
Types
,
size
);
memcpy
((
*
iterator
)
->
pathdata
.
Points
,
path
->
pathdata
.
Points
,
size
*
sizeof
(
PointF
));
(
*
iterator
)
->
pathdata
.
Count
=
size
;
(
*
iterator
)
->
subpath_pos
=
0
;
(
*
iterator
)
->
marker_pos
=
0
;
(
*
iterator
)
->
pathtype_pos
=
0
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDeletePathIter
(
GpPathIterator
*
iter
)
{
if
(
!
iter
)
return
InvalidParameter
;
GdipFree
(
iter
->
pathdata
.
Types
);
GdipFree
(
iter
->
pathdata
.
Points
);
GdipFree
(
iter
);
return
Ok
;
}
include/gdiplusflat.h
View file @
08508289
...
...
@@ -85,6 +85,9 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipTransformMatrixPoints
(
GpMatrix
*
,
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipDeletePathIter
(
GpPathIterator
*
);
#ifdef __cplusplus
}
#endif
...
...
include/gdiplusgpstubs.h
View file @
08508289
...
...
@@ -27,6 +27,7 @@ class GpBrush {};
class
GpSolidFill
{};
class
GpPath
{};
class
GpMatrix
{};
class
GpPathIterator
{};
#else
/* end of c++ declarations */
...
...
@@ -36,6 +37,7 @@ typedef struct GpBrush GpBrush;
typedef
struct
GpSolidFill
GpSolidFill
;
typedef
struct
GpPath
GpPath
;
typedef
struct
GpMatrix
GpMatrix
;
typedef
struct
GpPathIterator
GpPathIterator
;
#endif
/* end of c declarations */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment