gdiplus: Added pixel offset mode.
[wine] / include / gdiplusflat.h
1 /*
2  * Copyright (C) 2007 Google (Evan Stade)
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #ifndef _FLATAPI_H
20 #define _FLATAPI_H
21
22 #define WINGDIPAPI __stdcall
23
24 #define GDIPCONST const
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
31 GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
32 GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen*,GpLineCap);
33 GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin);
34
35 GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
36 GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
37 GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *);
38 GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
39 GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,
40     REAL,REAL,REAL);
41 GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL);
42 GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics*,GpPen*,INT,INT,INT,INT);
43 GpStatus WINGDIPAPI GdipDrawLines(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
44 GpStatus WINGDIPAPI GdipDrawPath(GpGraphics*,GpPen*,GpPath*);
45 GpStatus WINGDIPAPI GdipDrawPie(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
46 GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics*,GpPen*,INT,INT,INT,INT);
47 GpStatus WINGDIPAPI GdipFillPie(GpGraphics*,GpBrush*,REAL,REAL,REAL,REAL,REAL,REAL);
48 GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
49 GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
50 GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
51 GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
52 GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);
53 GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
54 GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
55 GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
56
57 GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
58 GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
59 GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
60
61 GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
62 GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
63 GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL);
64 GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
65 GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
66 GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
67 GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
68 GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*);
69 GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
70 GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
71 GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*,
72     GDIPCONST GpPen*);
73 GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
74 GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
75 GpStatus WINGDIPAPI GdipResetPath(GpPath*);
76 GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
77 GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
78
79 GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
80 GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
81 GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix*,GpPointF*,INT);
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif