gdiplus: Initial custom line caps implementation.
[wine/hacks.git] / include / gdiplusflat.h
blob136f4695f748e6fcdaa677364ab721e573d98a8d
1 /*
2 * Copyright (C) 2007 Google (Evan Stade)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _FLATAPI_H
20 #define _FLATAPI_H
22 #define WINGDIPAPI __stdcall
24 #define GDIPCONST const
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 GpStatus WINGDIPAPI GdipClonePen(GpPen*,GpPen**);
31 GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
32 GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
33 GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen*,GpDashStyle*);
34 GpStatus WINGDIPAPI GdipSetPenDashStyle(GpPen*,GpDashStyle);
35 GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen*,GpLineCap);
36 GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap);
37 GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin);
38 GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL);
40 GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
41 GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
42 GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *);
43 GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
44 GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,
45 REAL,REAL,REAL);
46 GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL);
47 GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics*,GpPen*,INT,INT,INT,INT);
48 GpStatus WINGDIPAPI GdipDrawLines(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
49 GpStatus WINGDIPAPI GdipDrawPath(GpGraphics*,GpPen*,GpPath*);
50 GpStatus WINGDIPAPI GdipDrawPie(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
51 GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics*,GpPen*,INT,INT,INT,INT);
52 GpStatus WINGDIPAPI GdipFillPath(GpGraphics*,GpBrush*,GpPath*);
53 GpStatus WINGDIPAPI GdipFillPie(GpGraphics*,GpBrush*,REAL,REAL,REAL,REAL,REAL,REAL);
54 GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
55 GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
56 GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
57 GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
58 GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
59 GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*);
60 GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);
61 GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
62 GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
63 GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
65 GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
66 GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
67 GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
69 GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
70 GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT);
71 GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
72 GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL);
73 GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
74 GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
75 GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
76 GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
77 GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*);
78 GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
79 GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
80 GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*,
81 GDIPCONST GpPen*);
82 GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
83 GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
84 GpStatus WINGDIPAPI GdipResetPath(GpPath*);
85 GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
86 GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
88 GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
89 GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
90 GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
91 GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
92 GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
93 GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix*,REAL,REAL,GpMatrixOrder);
94 GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix*,GpPointF*,INT);
95 GpStatus WINGDIPAPI GdipTranslateMatrix(GpMatrix*,REAL,REAL,GpMatrixOrder);
97 GpStatus WINGDIPAPI GdipCreatePathIter(GpPathIterator**,GpPath*);
98 GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator*);
99 GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
100 INT,INT);
101 GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator*,INT*,INT*,INT*,BOOL*);
102 GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator*);
104 GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath*,GpPath*,GpLineCap,REAL,
105 GpCustomLineCap**);
106 GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
108 #ifdef __cplusplus
110 #endif
112 #endif