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
d806c678
Commit
d806c678
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 GdipCreateLineBrushFromRectI.
parent
ec304916
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletion
+29
-1
brush.c
dlls/gdiplus/brush.c
+17
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplusenums.h
include/gdiplusenums.h
+9
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/brush.c
View file @
d806c678
...
...
@@ -115,6 +115,23 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRectI
(
GDIPCONST
GpRect
*
rect
,
ARGB
startcolor
,
ARGB
endcolor
,
LinearGradientMode
mode
,
GpWrapMode
wrap
,
GpLineGradient
**
line
)
{
GpPointF
start
,
end
;
if
(
!
line
||
!
rect
)
return
InvalidParameter
;
start
.
X
=
(
REAL
)
rect
->
X
;
start
.
Y
=
(
REAL
)
rect
->
Y
;
end
.
X
=
(
REAL
)
(
rect
->
X
+
rect
->
Width
);
end
.
Y
=
(
REAL
)
(
rect
->
Y
+
rect
->
Height
);
return
GdipCreateLineBrush
(
&
start
,
&
end
,
startcolor
,
endcolor
,
wrap
,
line
);
}
GpStatus
WINGDIPAPI
GdipCreatePathGradient
(
GDIPCONST
GpPointF
*
points
,
INT
count
,
GpWrapMode
wrap
,
GpPathGradient
**
grad
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
d806c678
...
...
@@ -100,7 +100,7 @@
@ stdcall GdipCreateImageAttributes(ptr)
@ stdcall GdipCreateLineBrush(ptr ptr long long long ptr)
@ stub GdipCreateLineBrushFromRect
@ st
ub GdipCreateLineBrushFromRectI
@ st
dcall GdipCreateLineBrushFromRectI(ptr long long long long ptr)
@ stub GdipCreateLineBrushFromRectWithAngle
@ stub GdipCreateLineBrushFromRectWithAngleI
@ stub GdipCreateLineBrushI
...
...
include/gdiplusenums.h
View file @
d806c678
...
...
@@ -183,6 +183,14 @@ enum MetafileType
MetafileTypeEmfPlusDual
};
enum
LinearGradientMode
{
LinearGradientModeHorizontal
,
LinearGradientModeVertical
,
LinearGradientModeForwardDiagonal
,
LinearGradientModeBackwardDiagonal
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -202,6 +210,7 @@ typedef enum MatrixOrder MatrixOrder;
typedef
enum
ImageType
ImageType
;
typedef
enum
WrapMode
WrapMode
;
typedef
enum
MetafileType
MetafileType
;
typedef
enum
LinearGradientMode
LinearGradientMode
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
d806c678
...
...
@@ -146,6 +146,8 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
GpStatus
WINGDIPAPI
GdipTransformPath
(
GpPath
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipCloneMatrix
(
GpMatrix
*
,
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRectI
(
GDIPCONST
GpRect
*
,
ARGB
,
ARGB
,
LinearGradientMode
,
GpWrapMode
,
GpLineGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateMatrix
(
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipCreateMatrix3
(
GDIPCONST
GpRectF
*
,
GDIPCONST
GpPointF
*
,
...
...
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