Set the miter limit in the DC state.
[wine] / dlls / gdi / gdi_private.h
1 /*
2  * GDI definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_GDI_PRIVATE_H
22 #define __WINE_GDI_PRIVATE_H
23
24 /* Metafile defines */
25 #define META_EOF 0x0000
26 /* values of mtType in METAHEADER.  Note however that the disk image of a disk
27    based metafile has mtType == 1 */
28 #define METAFILE_MEMORY 1
29 #define METAFILE_DISK   2
30
31 struct gdi_obj_funcs
32 {
33     HGDIOBJ (*pSelectObject)( HGDIOBJ handle, void *obj, HDC hdc );
34     INT     (*pGetObject16)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
35     INT     (*pGetObjectA)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
36     INT     (*pGetObjectW)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
37     BOOL    (*pUnrealizeObject)( HGDIOBJ handle, void *obj );
38     BOOL    (*pDeleteObject)( HGDIOBJ handle, void *obj );
39 };
40
41 struct hdc_list
42 {
43     HDC hdc;
44     struct hdc_list *next;
45 };
46
47 /* Device functions for the Wine driver interface */
48
49 typedef struct { int opaque; } *PHYSDEV;  /* PHYSDEV is an opaque pointer */
50
51 typedef struct tagDC_FUNCS
52 {
53     INT      (*pAbortDoc)(PHYSDEV);
54     BOOL     (*pAbortPath)(PHYSDEV);
55     BOOL     (*pAlphaBlend)(PHYSDEV,INT,INT,INT,INT,PHYSDEV,INT,INT,INT,INT,BLENDFUNCTION);
56     BOOL     (*pAngleArc)(PHYSDEV,INT,INT,DWORD,FLOAT,FLOAT);
57     BOOL     (*pArc)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
58     BOOL     (*pArcTo)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
59     BOOL     (*pBeginPath)(PHYSDEV);
60     BOOL     (*pBitBlt)(PHYSDEV,INT,INT,INT,INT,PHYSDEV,INT,INT,DWORD);
61     INT      (*pChoosePixelFormat)(PHYSDEV,const PIXELFORMATDESCRIPTOR *);
62     BOOL     (*pChord)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
63     BOOL     (*pCloseFigure)(PHYSDEV);
64     BOOL     (*pCreateBitmap)(PHYSDEV,HBITMAP);
65     BOOL     (*pCreateDC)(HDC,PHYSDEV *,LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODEW*);
66     HBITMAP  (*pCreateDIBSection)(PHYSDEV,const BITMAPINFO *,UINT,VOID **,HANDLE,DWORD,DWORD);
67     BOOL     (*pDeleteBitmap)(HBITMAP);
68     BOOL     (*pDeleteDC)(PHYSDEV);
69     BOOL     (*pDeleteObject)(PHYSDEV,HGDIOBJ);
70     INT      (*pDescribePixelFormat)(PHYSDEV,INT,UINT,PIXELFORMATDESCRIPTOR *);
71     DWORD    (*pDeviceCapabilities)(LPSTR,LPCSTR,LPCSTR,WORD,LPSTR,LPDEVMODEA);
72     BOOL     (*pEllipse)(PHYSDEV,INT,INT,INT,INT);
73     INT      (*pEndDoc)(PHYSDEV);
74     INT      (*pEndPage)(PHYSDEV);
75     BOOL     (*pEndPath)(PHYSDEV);
76     BOOL     (*pEnumDeviceFonts)(PHYSDEV,LPLOGFONTW,FONTENUMPROCW,LPARAM);
77     INT      (*pExcludeClipRect)(PHYSDEV,INT,INT,INT,INT);
78     INT      (*pExtDeviceMode)(LPSTR,HWND,LPDEVMODEA,LPSTR,LPSTR,LPDEVMODEA,LPSTR,DWORD);
79     INT      (*pExtEscape)(PHYSDEV,INT,INT,LPCVOID,INT,LPVOID);
80     BOOL     (*pExtFloodFill)(PHYSDEV,INT,INT,COLORREF,UINT);
81     INT      (*pExtSelectClipRgn)(PHYSDEV,HRGN,INT);
82     BOOL     (*pExtTextOut)(PHYSDEV,INT,INT,UINT,const RECT*,LPCWSTR,UINT,const INT*,INT);
83     BOOL     (*pFillPath)(PHYSDEV);
84     BOOL     (*pFillRgn)(PHYSDEV,HRGN,HBRUSH);
85     BOOL     (*pFlattenPath)(PHYSDEV);
86     BOOL     (*pFrameRgn)(PHYSDEV,HRGN,HBRUSH,INT,INT);
87     BOOL     (*pGdiComment)(PHYSDEV,UINT,CONST BYTE*);
88     LONG     (*pGetBitmapBits)(HBITMAP,void*,LONG);
89     BOOL     (*pGetCharWidth)(PHYSDEV,UINT,UINT,LPINT);
90     BOOL     (*pGetDCOrgEx)(PHYSDEV,LPPOINT);
91     UINT     (*pGetDIBColorTable)(PHYSDEV,UINT,UINT,RGBQUAD*);
92     INT      (*pGetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPVOID,BITMAPINFO*,UINT);
93     INT      (*pGetDeviceCaps)(PHYSDEV,INT);
94     BOOL     (*pGetDeviceGammaRamp)(PHYSDEV,LPVOID);
95     COLORREF (*pGetNearestColor)(PHYSDEV,COLORREF);
96     COLORREF (*pGetPixel)(PHYSDEV,INT,INT);
97     INT      (*pGetPixelFormat)(PHYSDEV);
98     UINT     (*pGetSystemPaletteEntries)(PHYSDEV,UINT,UINT,LPPALETTEENTRY);
99     BOOL     (*pGetTextExtentPoint)(PHYSDEV,LPCWSTR,INT,LPSIZE);
100     BOOL     (*pGetTextMetrics)(PHYSDEV,TEXTMETRICW*);
101     INT      (*pIntersectClipRect)(PHYSDEV,INT,INT,INT,INT);
102     BOOL     (*pInvertRgn)(PHYSDEV,HRGN);
103     BOOL     (*pLineTo)(PHYSDEV,INT,INT);
104     BOOL     (*pModifyWorldTransform)(PHYSDEV,const XFORM*,INT);
105     BOOL     (*pMoveTo)(PHYSDEV,INT,INT);
106     INT      (*pOffsetClipRgn)(PHYSDEV,INT,INT);
107     INT      (*pOffsetViewportOrg)(PHYSDEV,INT,INT);
108     INT      (*pOffsetWindowOrg)(PHYSDEV,INT,INT);
109     BOOL     (*pPaintRgn)(PHYSDEV,HRGN);
110     BOOL     (*pPatBlt)(PHYSDEV,INT,INT,INT,INT,DWORD);
111     BOOL     (*pPie)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
112     BOOL     (*pPolyBezier)(PHYSDEV,const POINT*,DWORD);
113     BOOL     (*pPolyBezierTo)(PHYSDEV,const POINT*,DWORD);
114     BOOL     (*pPolyDraw)(PHYSDEV,const POINT*,const BYTE *,DWORD);
115     BOOL     (*pPolyPolygon)(PHYSDEV,const POINT*,const INT*,UINT);
116     BOOL     (*pPolyPolyline)(PHYSDEV,const POINT*,const DWORD*,DWORD);
117     BOOL     (*pPolygon)(PHYSDEV,const POINT*,INT);
118     BOOL     (*pPolyline)(PHYSDEV,const POINT*,INT);
119     BOOL     (*pPolylineTo)(PHYSDEV,const POINT*,INT);
120     UINT     (*pRealizeDefaultPalette)(PHYSDEV);
121     UINT     (*pRealizePalette)(PHYSDEV,HPALETTE,BOOL);
122     BOOL     (*pRectangle)(PHYSDEV,INT,INT,INT,INT);
123     HDC      (*pResetDC)(PHYSDEV,const DEVMODEW*);
124     BOOL     (*pRestoreDC)(PHYSDEV,INT);
125     BOOL     (*pRoundRect)(PHYSDEV,INT,INT,INT,INT,INT,INT);
126     INT      (*pSaveDC)(PHYSDEV);
127     INT      (*pScaleViewportExt)(PHYSDEV,INT,INT,INT,INT);
128     INT      (*pScaleWindowExt)(PHYSDEV,INT,INT,INT,INT);
129     HBITMAP  (*pSelectBitmap)(PHYSDEV,HBITMAP);
130     HBRUSH   (*pSelectBrush)(PHYSDEV,HBRUSH);
131     BOOL     (*pSelectClipPath)(PHYSDEV,INT);
132     HFONT    (*pSelectFont)(PHYSDEV,HFONT,HANDLE);
133     HPALETTE (*pSelectPalette)(PHYSDEV,HPALETTE,BOOL);
134     HPEN     (*pSelectPen)(PHYSDEV,HPEN);
135     INT      (*pSetArcDirection)(PHYSDEV,INT);
136     LONG     (*pSetBitmapBits)(HBITMAP,const void*,LONG);
137     COLORREF (*pSetBkColor)(PHYSDEV,COLORREF);
138     INT      (*pSetBkMode)(PHYSDEV,INT);
139     COLORREF (*pSetDCBrushColor)(PHYSDEV, COLORREF);
140     DWORD    (*pSetDCOrg)(PHYSDEV,INT,INT);
141     COLORREF (*pSetDCPenColor)(PHYSDEV, COLORREF);
142     UINT     (*pSetDIBColorTable)(PHYSDEV,UINT,UINT,const RGBQUAD*);
143     INT      (*pSetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
144     INT      (*pSetDIBitsToDevice)(PHYSDEV,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,
145                                    const BITMAPINFO*,UINT);
146     VOID     (*pSetDeviceClipping)(PHYSDEV,HRGN,HRGN);
147     BOOL     (*pSetDeviceGammaRamp)(PHYSDEV,LPVOID);
148     INT      (*pSetMapMode)(PHYSDEV,INT);
149     DWORD    (*pSetMapperFlags)(PHYSDEV,DWORD);
150     COLORREF (*pSetPixel)(PHYSDEV,INT,INT,COLORREF);
151     BOOL     (*pSetPixelFormat)(PHYSDEV,INT,const PIXELFORMATDESCRIPTOR *);
152     INT      (*pSetPolyFillMode)(PHYSDEV,INT);
153     INT      (*pSetROP2)(PHYSDEV,INT);
154     INT      (*pSetRelAbs)(PHYSDEV,INT);
155     INT      (*pSetStretchBltMode)(PHYSDEV,INT);
156     UINT     (*pSetTextAlign)(PHYSDEV,UINT);
157     INT      (*pSetTextCharacterExtra)(PHYSDEV,INT);
158     DWORD    (*pSetTextColor)(PHYSDEV,DWORD);
159     INT      (*pSetTextJustification)(PHYSDEV,INT,INT);
160     INT      (*pSetViewportExt)(PHYSDEV,INT,INT);
161     INT      (*pSetViewportOrg)(PHYSDEV,INT,INT);
162     INT      (*pSetWindowExt)(PHYSDEV,INT,INT);
163     INT      (*pSetWindowOrg)(PHYSDEV,INT,INT);
164     BOOL     (*pSetWorldTransform)(PHYSDEV,const XFORM*);
165     INT      (*pStartDoc)(PHYSDEV,const DOCINFOA*);
166     INT      (*pStartPage)(PHYSDEV);
167     BOOL     (*pStretchBlt)(PHYSDEV,INT,INT,INT,INT,PHYSDEV,INT,INT,INT,INT,DWORD);
168     INT      (*pStretchDIBits)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT,const void *,
169                                const BITMAPINFO*,UINT,DWORD);
170     BOOL     (*pStrokeAndFillPath)(PHYSDEV);
171     BOOL     (*pStrokePath)(PHYSDEV);
172     BOOL     (*pSwapBuffers)(PHYSDEV);
173     BOOL     (*pWidenPath)(PHYSDEV);
174 } DC_FUNCTIONS;
175
176 /* It should not be necessary to access the contents of the GdiPath
177  * structure directly; if you find that the exported functions don't
178  * allow you to do what you want, then please place a new exported
179  * function that does this job in path.c.
180  */
181 typedef enum tagGdiPathState
182 {
183    PATH_Null,
184    PATH_Open,
185    PATH_Closed
186 } GdiPathState;
187
188 typedef struct tagGdiPath
189 {
190    GdiPathState state;
191    POINT      *pPoints;
192    BYTE         *pFlags;
193    int          numEntriesUsed, numEntriesAllocated;
194    BOOL       newStroke;
195 } GdiPath;
196
197 typedef struct tagGdiFont *GdiFont;
198
199 typedef struct tagDC
200 {
201     GDIOBJHDR    header;
202     HDC          hSelf;            /* Handle to this DC */
203     const struct tagDC_FUNCS *funcs; /* DC function table */
204     PHYSDEV      physDev;         /* Physical device (driver-specific) */
205     INT          saveLevel;
206     DWORD        dwHookData;
207     FARPROC16    hookProc;         /* the original SEGPTR ... */
208     DCHOOKPROC   hookThunk;        /* ... and the thunk to call it */
209
210     INT          wndOrgX;          /* Window origin */
211     INT          wndOrgY;
212     INT          wndExtX;          /* Window extent */
213     INT          wndExtY;
214     INT          vportOrgX;        /* Viewport origin */
215     INT          vportOrgY;
216     INT          vportExtX;        /* Viewport extent */
217     INT          vportExtY;
218     FLOAT        miterLimit;
219
220     int           flags;
221     HRGN          hClipRgn;     /* Clip region (may be 0) */
222     HRGN          hVisRgn;      /* Visible region (must never be 0) */
223     HPEN          hPen;
224     HBRUSH        hBrush;
225     HFONT         hFont;
226     HBITMAP       hBitmap;
227     HANDLE        hDevice;
228     HPALETTE      hPalette;
229
230     GdiFont       gdiFont;
231     GdiPath       path;
232
233     WORD          ROPmode;
234     WORD          polyFillMode;
235     WORD          stretchBltMode;
236     WORD          relAbsMode;
237     WORD          backgroundMode;
238     COLORREF      backgroundColor;
239     COLORREF      textColor;
240     COLORREF      dcBrushColor;
241     COLORREF      dcPenColor;
242     short         brushOrgX;
243     short         brushOrgY;
244
245     WORD          textAlign;         /* Text alignment from SetTextAlign() */
246     INT           charExtra;         /* Spacing from SetTextCharacterExtra() */
247     INT           breakExtra;        /* breakTotalExtra / breakCount */
248     INT           breakRem;          /* breakTotalExtra % breakCount */
249     INT           MapMode;
250     INT           GraphicsMode;      /* Graphics mode */
251     ABORTPROC     pAbortProc;        /* AbortProc for Printing */
252     ABORTPROC16   pAbortProc16;
253     INT           CursPosX;          /* Current position */
254     INT           CursPosY;
255     INT           ArcDirection;
256     XFORM         xformWorld2Wnd;    /* World-to-window transformation */
257     XFORM         xformWorld2Vport;  /* World-to-viewport transformation */
258     XFORM         xformVport2World;  /* Inverse of the above transformation */
259     BOOL          vport2WorldValid;  /* Is xformVport2World valid? */
260     RECT          BoundsRect;        /* Current bounding rect */
261 } DC;
262
263   /* DC flags */
264 #define DC_SAVED         0x0002   /* It is a saved DC */
265 #define DC_DIRTY         0x0004   /* hVisRgn has to be updated */
266 #define DC_BOUNDS_ENABLE 0x0008   /* Bounding rectangle tracking is enabled */
267 #define DC_BOUNDS_SET    0x0010   /* Bounding rectangle has been set */
268
269 /* Certain functions will do no further processing if the driver returns this.
270    Used by mfdrv for example. */
271 #define GDI_NO_MORE_WORK 2
272
273 /* Rounds a floating point number to integer. The world-to-viewport
274  * transformation process is done in floating point internally. This function
275  * is then used to round these coordinates to integer values.
276  */
277 static inline INT GDI_ROUND(FLOAT val)
278 {
279    return (int)floor(val + 0.5);
280 }
281
282 /* bidi.c */
283
284 /* Wine_GCPW Flags */
285 /* Directionality -
286  * LOOSE means that the paragraph dir is only set if there is no strong character.
287  * FORCE means override the characters in the paragraph.
288  */
289 #define WINE_GCPW_FORCE_LTR 0
290 #define WINE_GCPW_FORCE_RTL 1
291 #define WINE_GCPW_LOOSE_LTR 2
292 #define WINE_GCPW_LOOSE_RTL 3
293 #define WINE_GCPW_DIR_MASK 3
294 extern BOOL BIDI_Reorder( LPCWSTR lpString, INT uCount, DWORD dwFlags, DWORD dwWineGCP_Flags,
295                           LPWSTR lpOutString, INT uCountOut, UINT *lpOrder );
296 extern BOOL BidiAvail;
297
298 /* bitmap.c */
299 extern HBITMAP BITMAP_CopyBitmap( HBITMAP hbitmap );
300 extern BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, DC *dc );
301 extern INT BITMAP_GetWidthBytes( INT bmWidth, INT bpp );
302
303 /* clipping.c */
304 extern void CLIPPING_UpdateGCRegion( DC * dc );
305
306 /* dc.c */
307 extern DC * DC_AllocDC( const DC_FUNCTIONS *funcs, WORD magic );
308 extern DC * DC_GetDCUpdate( HDC hdc );
309 extern DC * DC_GetDCPtr( HDC hdc );
310 extern void DC_InitDC( DC * dc );
311 extern void DC_UpdateXforms( DC * dc );
312
313 /* dib.c */
314 extern int DIB_GetDIBWidthBytes( int width, int depth );
315 extern int DIB_GetDIBImageBytes( int width, int height, int depth );
316 extern int DIB_BitmapInfoSize( const BITMAPINFO * info, WORD coloruse );
317
318 /* driver.c */
319 extern const DC_FUNCTIONS *DRIVER_load_driver( LPCWSTR name );
320 extern const DC_FUNCTIONS *DRIVER_get_driver( const DC_FUNCTIONS *funcs );
321 extern void DRIVER_release_driver( const DC_FUNCTIONS *funcs );
322 extern BOOL DRIVER_GetDriverName( LPCWSTR device, LPWSTR driver, DWORD size );
323
324 /* enhmetafile.c */
325 extern HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, BOOL on_disk );
326
327 /* freetype.c */
328 extern INT WineEngAddFontResourceEx(LPCWSTR, DWORD, PVOID);
329 extern GdiFont WineEngCreateFontInstance(DC*, HFONT);
330 extern BOOL WineEngDestroyFontInstance(HFONT handle);
331 extern DWORD WineEngEnumFonts(LPLOGFONTW, FONTENUMPROCW, LPARAM);
332 extern BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar,
333                                     UINT lastChar, LPABC buffer);
334 extern BOOL WineEngGetCharWidth(GdiFont, UINT, UINT, LPINT);
335 extern DWORD WineEngGetFontData(GdiFont, DWORD, DWORD, LPVOID, DWORD);
336 extern DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count,
337                                     LPWORD pgi, DWORD flags);
338 extern DWORD WineEngGetGlyphOutline(GdiFont, UINT glyph, UINT format,
339                                     LPGLYPHMETRICS, DWORD buflen, LPVOID buf,
340                                     const MAT2*);
341 extern UINT WineEngGetOutlineTextMetrics(GdiFont, UINT, LPOUTLINETEXTMETRICW);
342 extern UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags);
343 extern BOOL WineEngGetTextExtentPoint(GdiFont, LPCWSTR, INT, LPSIZE);
344 extern BOOL WineEngGetTextExtentPointI(GdiFont, const WORD *, INT, LPSIZE);
345 extern INT  WineEngGetTextFace(GdiFont, INT, LPWSTR);
346 extern BOOL WineEngGetTextMetrics(GdiFont, LPTEXTMETRICW);
347 extern BOOL WineEngInit(void);
348 extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID);
349
350 /* gdiobj.c */
351 extern BOOL GDI_Init(void);
352 extern void *GDI_AllocObject( WORD, WORD, HGDIOBJ *, const struct gdi_obj_funcs *funcs );
353 extern void *GDI_ReallocObject( WORD, HGDIOBJ, void *obj );
354 extern BOOL GDI_FreeObject( HGDIOBJ, void *obj );
355 extern void GDI_CheckNotLock(void);
356 extern BOOL GDI_hdc_using_object(HGDIOBJ obj, HDC hdc);
357 extern BOOL GDI_hdc_not_using_object(HGDIOBJ obj, HDC hdc);
358
359 /* metafile.c */
360 extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh);
361 extern HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh);
362 extern METAHEADER *MF_CreateMetaHeaderDisk(METAHEADER *mr, LPCVOID filename, BOOL unicode );
363
364 /* path.c */
365
366 #define PATH_IsPathOpen(path) ((path).state==PATH_Open)
367 /* Returns TRUE if the specified path is in the open state, i.e. in the
368  * state where points will be added to the path, or FALSE otherwise. This
369  * function is implemented as a macro for performance reasons.
370  */
371
372 extern void PATH_InitGdiPath(GdiPath *pPath);
373 extern void PATH_DestroyGdiPath(GdiPath *pPath);
374 extern BOOL PATH_AssignGdiPath(GdiPath *pPathDest, const GdiPath *pPathSrc);
375
376 extern BOOL PATH_MoveTo(DC *dc);
377 extern BOOL PATH_LineTo(DC *dc, INT x, INT y);
378 extern BOOL PATH_Rectangle(DC *dc, INT x1, INT y1, INT x2, INT y2);
379 extern BOOL PATH_Ellipse(DC *dc, INT x1, INT y1, INT x2, INT y2);
380 extern BOOL PATH_Arc(DC *dc, INT x1, INT y1, INT x2, INT y2,
381                      INT xStart, INT yStart, INT xEnd, INT yEnd, INT lines);
382 extern BOOL PATH_PolyBezierTo(DC *dc, const POINT *pt, DWORD cbCount);
383 extern BOOL PATH_PolyBezier(DC *dc, const POINT *pt, DWORD cbCount);
384 extern BOOL PATH_PolylineTo(DC *dc, const POINT *pt, DWORD cbCount);
385 extern BOOL PATH_Polyline(DC *dc, const POINT *pt, DWORD cbCount);
386 extern BOOL PATH_Polygon(DC *dc, const POINT *pt, DWORD cbCount);
387 extern BOOL PATH_PolyPolyline(DC *dc, const POINT *pt, const DWORD *counts, DWORD polylines);
388 extern BOOL PATH_PolyPolygon(DC *dc, const POINT *pt, const INT *counts, UINT polygons);
389 extern BOOL PATH_RoundRect(DC *dc, INT x1, INT y1, INT x2, INT y2, INT ell_width, INT ell_height);
390 extern BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, BYTE flags);
391
392 /* painting.c */
393 extern POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut );
394
395 /* palette.c */
396 extern HPALETTE WINAPI GDISelectPalette( HDC hdc, HPALETTE hpal, WORD wBkg);
397 extern UINT WINAPI GDIRealizePalette( HDC hdc );
398 extern HPALETTE PALETTE_Init(void);
399
400 /* region.c */
401 extern BOOL REGION_FrameRgn( HRGN dest, HRGN src, INT x, INT y );
402
403 /* Undocumented value for DIB's iUsage: Indicates a mono DIB w/o pal enties */
404 #define DIB_PAL_MONO 2
405 #endif /* __WINE_GDI_PRIVATE_H */