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