Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2b438a02
Commit
2b438a02
authored
Aug 07, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreateLineBrush.
parent
3f9fad16
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
1 deletion
+43
-1
brush.c
dlls/gdiplus/brush.c
+29
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+9
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+2
-0
No files found.
dlls/gdiplus/brush.c
View file @
2b438a02
...
...
@@ -77,6 +77,35 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateLineBrush
(
GDIPCONST
GpPointF
*
startpoint
,
GDIPCONST
GpPointF
*
endpoint
,
ARGB
startcolor
,
ARGB
endcolor
,
GpWrapMode
wrap
,
GpLineGradient
**
line
)
{
COLORREF
col
=
ARGB2COLORREF
(
startcolor
);
if
(
!
line
||
!
startpoint
||
!
endpoint
)
return
InvalidParameter
;
*
line
=
GdipAlloc
(
sizeof
(
GpLineGradient
));
if
(
!*
line
)
return
OutOfMemory
;
(
*
line
)
->
brush
.
lb
.
lbStyle
=
BS_SOLID
;
(
*
line
)
->
brush
.
lb
.
lbColor
=
col
;
(
*
line
)
->
brush
.
lb
.
lbHatch
=
0
;
(
*
line
)
->
brush
.
gdibrush
=
CreateSolidBrush
(
col
);
(
*
line
)
->
brush
.
bt
=
BrushTypeLinearGradient
;
(
*
line
)
->
startpoint
.
X
=
startpoint
->
X
;
(
*
line
)
->
startpoint
.
Y
=
startpoint
->
Y
;
(
*
line
)
->
endpoint
.
X
=
endpoint
->
X
;
(
*
line
)
->
endpoint
.
Y
=
endpoint
->
Y
;
(
*
line
)
->
startcolor
=
startcolor
;
(
*
line
)
->
endcolor
=
endcolor
;
(
*
line
)
->
wrap
=
wrap
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreatePathGradient
(
GDIPCONST
GpPointF
*
points
,
INT
count
,
GpWrapMode
wrap
,
GpPathGradient
**
grad
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
2b438a02
...
...
@@ -98,7 +98,7 @@
@ stub GdipCreateHalftonePalette
@ stub GdipCreateHatchBrush
@ stdcall GdipCreateImageAttributes(ptr)
@ st
ub GdipCreateLineBrush
@ st
dcall GdipCreateLineBrush(ptr ptr long long long ptr)
@ stub GdipCreateLineBrushFromRect
@ stub GdipCreateLineBrushFromRectI
@ stub GdipCreateLineBrushFromRectWithAngle
...
...
dlls/gdiplus/gdiplus_private.h
View file @
2b438a02
...
...
@@ -104,6 +104,15 @@ struct GpPathGradient{
GpPointF
focus
;
};
struct
GpLineGradient
{
GpBrush
brush
;
GpPointF
startpoint
;
GpPointF
endpoint
;
ARGB
startcolor
;
ARGB
endcolor
;
GpWrapMode
wrap
;
};
struct
GpPath
{
GpFillMode
fill
;
GpPathData
pathdata
;
...
...
include/gdiplusflat.h
View file @
2b438a02
...
...
@@ -49,6 +49,8 @@ GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHWND
(
HWND
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateLineBrush
(
GDIPCONST
GpPointF
*
,
GDIPCONST
GpPointF
*
,
ARGB
,
ARGB
,
GpWrapMode
,
GpLineGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateMetafileFromEmf
(
HENHMETAFILE
,
BOOL
,
GpMetafile
**
);
GpStatus
WINGDIPAPI
GdipCreateMetafileFromWmf
(
HMETAFILE
,
BOOL
,
GDIPCONST
WmfPlaceableFileHeader
*
,
GpMetafile
**
);
...
...
include/gdiplusgpstubs.h
View file @
2b438a02
...
...
@@ -34,6 +34,7 @@ class GpMetafile : public GpImage {};
class
GpImageAttributes
{};
class
GpBitmap
:
public
GpImage
{};
class
GpPathGradient
:
public
GpBrush
{};
class
GpLineGradient
:
public
GpBrush
{};
#else
/* end of c++ declarations */
...
...
@@ -50,6 +51,7 @@ typedef struct GpMetafile GpMetafile;
typedef
struct
GpImageAttributes
GpImageAttributes
;
typedef
struct
GpBitmap
GpBitmap
;
typedef
struct
GpPathGradient
GpPathGradient
;
typedef
struct
GpLineGradient
GpLineGradient
;
#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