-
Notifications
You must be signed in to change notification settings - Fork 171
/
pathgradientbrush.h
77 lines (60 loc) · 3.44 KB
/
pathgradientbrush.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* pathgradientbrush.h
*
* Authors:
* Vladimir Vukicevic (vladimir@pobox.com)
* Ravindra (rkumar@novell.com)
*
* Copyright (C) 2004 Novell, Inc.
*/
#ifndef _PATHGRADIENTBRUSH_
#define _PATHGRADIENTBRUSH_
#include "gdip.h"
#include "brush.h"
struct _GpPathGradient {
GpBrush base;
GpPath *boundary;
ARGB *boundaryColors;
int boundaryColorsCount;
GpPointF center;
ARGB centerColor;
GpPointF focusScales;
GpRectF *rectangle;
Blend *blend;
InterpolationColors *presetColors;
GpWrapMode wrapMode;
GpMatrix *transform;
cairo_pattern_t *pattern;
};
typedef struct _GpPathGradient GpPathGradient;
GpStatus GdipCreatePathGradient (GDIPCONST GpPointF *points, int count, GpWrapMode wrapMode, GpPathGradient **polyGradient);
GpStatus GdipCreatePathGradientI (GDIPCONST GpPoint *points, int count, GpWrapMode wrapMode, GpPathGradient **polyGradient);
GpStatus GdipCreatePathGradientFromPath (GDIPCONST GpPath *path, GpPathGradient **polyGradient);
GpStatus GdipGetPathGradientCenterColor (GpPathGradient *brush, ARGB *colors);
GpStatus GdipSetPathGradientCenterColor (GpPathGradient *brush, ARGB colors);
GpStatus GdipGetPathGradientSurroundColorCount (GpPathGradient *brush, int *count);
GpStatus GdipGetPathGradientSurroundColorsWithCount (GpPathGradient *brush, ARGB *color, int *count);
GpStatus GdipSetPathGradientSurroundColorsWithCount (GpPathGradient *brush, GDIPCONST ARGB *color, int *count);
GpStatus GdipGetPathGradientCenterPoint (GpPathGradient *brush, GpPointF *points);
GpStatus GdipSetPathGradientCenterPoint (GpPathGradient *brush, GDIPCONST GpPointF *points);
GpStatus GdipGetPathGradientRect (GpPathGradient *brush, GpRectF *rect);
GpStatus GdipGetPathGradientBlendCount (GpPathGradient *brush, int *count);
GpStatus GdipGetPathGradientBlend (GpPathGradient *brush, float *blend, float *positions, int count);
GpStatus GdipSetPathGradientBlend (GpPathGradient *brush, GDIPCONST float *blend, GDIPCONST float *positions, int count);
GpStatus GdipGetPathGradientPresetBlendCount (GpPathGradient *brush, int *count);
GpStatus GdipGetPathGradientPresetBlend (GpPathGradient *brush, ARGB *blend, float *positions, int count);
GpStatus GdipSetPathGradientPresetBlend (GpPathGradient *brush, GDIPCONST ARGB *blend, GDIPCONST float *positions, int count);
GpStatus GdipSetPathGradientSigmaBlend (GpPathGradient *brush, float focus, float scale);
GpStatus GdipSetPathGradientLinearBlend (GpPathGradient *brush, float focus, float scale);
GpStatus GdipGetPathGradientWrapMode (GpPathGradient *brush, GpWrapMode *wrapMode);
GpStatus GdipSetPathGradientWrapMode (GpPathGradient *brush, GpWrapMode wrapMode);
GpStatus GdipGetPathGradientTransform (GpPathGradient *brush, GpMatrix *matrix);
GpStatus GdipSetPathGradientTransform (GpPathGradient *brush, GpMatrix *matrix);
GpStatus GdipResetPathGradientTransform (GpPathGradient *brush);
GpStatus GdipMultiplyPathGradientTransform (GpPathGradient *brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order);
GpStatus GdipTranslatePathGradientTransform (GpPathGradient *brush, float dx, float dy, GpMatrixOrder order);
GpStatus GdipScalePathGradientTransform (GpPathGradient *brush, float sx, float sy, GpMatrixOrder order);
GpStatus GdipRotatePathGradientTransform (GpPathGradient *brush, float angle, GpMatrixOrder order);
GpStatus GdipGetPathGradientFocusScales (GpPathGradient *brush, float *xScale, float *yScale);
GpStatus GdipSetPathGradientFocusScales (GpPathGradient *brush, float xScale, float yScale);
#endif /* _PATHGRADIENTBRUSH_ */