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
26 #include "wine/wingdi16.h"
29 /* GDI objects magic numbers */
30 #define FIRST_MAGIC 0x4f47
31 #define PEN_MAGIC 0x4f47
32 #define BRUSH_MAGIC 0x4f48
33 #define FONT_MAGIC 0x4f49
34 #define PALETTE_MAGIC 0x4f4a
35 #define BITMAP_MAGIC 0x4f4b
36 #define REGION_MAGIC 0x4f4c
37 #define DC_MAGIC 0x4f4d
38 #define DISABLED_DC_MAGIC 0x4f4e
39 #define META_DC_MAGIC 0x4f4f
40 #define METAFILE_MAGIC 0x4f50
41 #define METAFILE_DC_MAGIC 0x4f51
42 #define ENHMETAFILE_MAGIC 0x4f52
43 #define ENHMETAFILE_DC_MAGIC 0x4f53
44 #define MEMORY_DC_MAGIC 0x4f54
45 #define LAST_MAGIC 0x4f54
47 #define MAGIC_DONTCARE 0xffff
49 /* GDI constants for making objects private/system (naming undoc. !) */
50 #define OBJECT_PRIVATE 0x2000
51 #define OBJECT_NOSYSTEM 0x8000
53 #define GDIMAGIC(magic) ((magic) & ~(OBJECT_PRIVATE|OBJECT_NOSYSTEM))
57 HGDIOBJ (*pSelectObject)( HGDIOBJ handle, void *obj, HDC hdc );
58 INT (*pGetObject16)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
59 INT (*pGetObjectA)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
60 INT (*pGetObjectW)( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
61 BOOL (*pUnrealizeObject)( HGDIOBJ handle, void *obj );
62 BOOL (*pDeleteObject)( HGDIOBJ handle, void *obj );
65 typedef struct tagGDIOBJHDR
70 const struct gdi_obj_funcs *funcs;
74 /* It should not be necessary to access the contents of the GdiPath
75 * structure directly; if you find that the exported functions don't
76 * allow you to do what you want, then please place a new exported
77 * function that does this job in path.c.
79 typedef enum tagGdiPathState
86 typedef struct tagGdiPath
91 int numEntriesUsed, numEntriesAllocated;
95 typedef struct tagGdiFont *GdiFont;
97 typedef struct { int opaque; } *PHYSDEV; /* PHYSDEV is an opaque pointer */
102 HDC hSelf; /* Handle to this DC */
103 const struct tagDC_FUNCS *funcs; /* DC function table */
104 PHYSDEV physDev; /* Physical device (driver-specific) */
107 FARPROC16 hookProc; /* the original SEGPTR ... */
108 DCHOOKPROC hookThunk; /* ... and the thunk to call it */
110 INT wndOrgX; /* Window origin */
112 INT wndExtX; /* Window extent */
114 INT vportOrgX; /* Viewport origin */
116 INT vportExtX; /* Viewport extent */
120 HRGN hClipRgn; /* Clip region (may be 0) */
121 HRGN hVisRgn; /* Visible region (must never be 0) */
122 HRGN hGCClipRgn; /* GC clip region (ClipRgn AND VisRgn) */
138 COLORREF backgroundColor;
143 WORD textAlign; /* Text alignment from SetTextAlign() */
144 short charExtra; /* Spacing from SetTextCharacterExtra() */
145 short breakTotalExtra; /* Total extra space for justification */
146 short breakCount; /* Break char. count */
147 short breakExtra; /* breakTotalExtra / breakCount */
148 short breakRem; /* breakTotalExtra % breakCount */
154 INT GraphicsMode; /* Graphics mode */
155 ABORTPROC pAbortProc; /* AbortProc for Printing */
156 ABORTPROC16 pAbortProc16;
157 INT CursPosX; /* Current position */
160 XFORM xformWorld2Wnd; /* World-to-window transformation */
161 XFORM xformWorld2Vport; /* World-to-viewport transformation */
162 XFORM xformVport2World; /* Inverse of the above transformation */
163 BOOL vport2WorldValid; /* Is xformVport2World valid? */
166 /* Device functions for the Wine driver interface */
168 typedef INT (*DEVICEFONTENUMPROC)(LPENUMLOGFONTEXW,NEWTEXTMETRICEXW *,DWORD,
171 typedef struct tagDC_FUNCS
173 INT (*pAbortDoc)(PHYSDEV);
174 BOOL (*pAbortPath)(PHYSDEV);
175 BOOL (*pAngleArc)(PHYSDEV,INT,INT,DWORD,FLOAT,FLOAT);
176 BOOL (*pArc)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
177 BOOL (*pArcTo)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
178 BOOL (*pBeginPath)(PHYSDEV);
179 BOOL (*pBitBlt)(PHYSDEV,INT,INT,INT,INT,PHYSDEV,INT,INT,DWORD);
180 INT (*pChoosePixelFormat)(PHYSDEV,const PIXELFORMATDESCRIPTOR *);
181 BOOL (*pChord)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
182 BOOL (*pCloseFigure)(PHYSDEV);
183 BOOL (*pCreateBitmap)(PHYSDEV,HBITMAP);
184 BOOL (*pCreateDC)(DC *,PHYSDEV *,LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*);
185 HBITMAP (*pCreateDIBSection)(PHYSDEV,BITMAPINFO *,UINT,LPVOID *,HANDLE,DWORD,DWORD);
186 BOOL (*pDeleteBitmap)(HBITMAP);
187 BOOL (*pDeleteDC)(PHYSDEV);
188 INT (*pDescribePixelFormat)(PHYSDEV,INT,UINT,PIXELFORMATDESCRIPTOR *);
189 DWORD (*pDeviceCapabilities)(LPSTR,LPCSTR,LPCSTR,WORD,LPSTR,LPDEVMODEA);
190 BOOL (*pEllipse)(PHYSDEV,INT,INT,INT,INT);
191 INT (*pEndDoc)(PHYSDEV);
192 INT (*pEndPage)(PHYSDEV);
193 BOOL (*pEndPath)(PHYSDEV);
194 BOOL (*pEnumDeviceFonts)(PHYSDEV,LPLOGFONTW,DEVICEFONTENUMPROC,LPARAM);
195 INT (*pExcludeClipRect)(PHYSDEV,INT,INT,INT,INT);
196 INT (*pExtDeviceMode)(LPSTR,HWND,LPDEVMODEA,LPSTR,LPSTR,LPDEVMODEA,LPSTR,DWORD);
197 INT (*pExtEscape)(PHYSDEV,INT,INT,LPCVOID,INT,LPVOID);
198 BOOL (*pExtFloodFill)(PHYSDEV,INT,INT,COLORREF,UINT);
199 INT (*pExtSelectClipRgn)(PHYSDEV,HRGN,INT);
200 BOOL (*pExtTextOut)(PHYSDEV,INT,INT,UINT,const RECT*,LPCWSTR,UINT,const INT*);
201 BOOL (*pFillPath)(PHYSDEV);
202 BOOL (*pFillRgn)(PHYSDEV,HRGN,HBRUSH);
203 BOOL (*pFlattenPath)(PHYSDEV);
204 BOOL (*pFrameRgn)(PHYSDEV,HRGN,HBRUSH,INT,INT);
205 BOOL (*pGdiComment)(PHYSDEV,UINT,CONST BYTE*);
206 LONG (*pGetBitmapBits)(HBITMAP,void*,LONG);
207 BOOL (*pGetCharWidth)(PHYSDEV,UINT,UINT,LPINT);
208 BOOL (*pGetDCOrgEx)(PHYSDEV,LPPOINT);
209 UINT (*pGetDIBColorTable)(PHYSDEV,UINT,UINT,RGBQUAD*);
210 INT (*pGetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPVOID,BITMAPINFO*,UINT);
211 INT (*pGetDeviceCaps)(PHYSDEV,INT);
212 BOOL (*pGetDeviceGammaRamp)(PHYSDEV,LPVOID);
213 COLORREF (*pGetNearestColor)(PHYSDEV,COLORREF);
214 COLORREF (*pGetPixel)(PHYSDEV,INT,INT);
215 INT (*pGetPixelFormat)(PHYSDEV);
216 UINT (*pGetSystemPaletteEntries)(PHYSDEV,UINT,UINT,LPPALETTEENTRY);
217 BOOL (*pGetTextExtentPoint)(PHYSDEV,LPCWSTR,INT,LPSIZE);
218 BOOL (*pGetTextMetrics)(PHYSDEV,TEXTMETRICW*);
219 INT (*pIntersectClipRect)(PHYSDEV,INT,INT,INT,INT);
220 BOOL (*pInvertRgn)(PHYSDEV,HRGN);
221 BOOL (*pLineTo)(PHYSDEV,INT,INT);
222 BOOL (*pModifyWorldTransform)(PHYSDEV,const XFORM*,INT);
223 BOOL (*pMoveTo)(PHYSDEV,INT,INT);
224 INT (*pOffsetClipRgn)(PHYSDEV,INT,INT);
225 INT (*pOffsetViewportOrg)(PHYSDEV,INT,INT);
226 INT (*pOffsetWindowOrg)(PHYSDEV,INT,INT);
227 BOOL (*pPaintRgn)(PHYSDEV,HRGN);
228 BOOL (*pPatBlt)(PHYSDEV,INT,INT,INT,INT,DWORD);
229 BOOL (*pPie)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT);
230 BOOL (*pPolyBezier)(PHYSDEV,const POINT*,DWORD);
231 BOOL (*pPolyBezierTo)(PHYSDEV,const POINT*,DWORD);
232 BOOL (*pPolyDraw)(PHYSDEV,const POINT*,const BYTE *,DWORD);
233 BOOL (*pPolyPolygon)(PHYSDEV,const POINT*,const INT*,UINT);
234 BOOL (*pPolyPolyline)(PHYSDEV,const POINT*,const DWORD*,DWORD);
235 BOOL (*pPolygon)(PHYSDEV,const POINT*,INT);
236 BOOL (*pPolyline)(PHYSDEV,const POINT*,INT);
237 BOOL (*pPolylineTo)(PHYSDEV,const POINT*,INT);
238 UINT (*pRealizeDefaultPalette)(PHYSDEV);
239 UINT (*pRealizePalette)(PHYSDEV,HPALETTE,BOOL);
240 BOOL (*pRectangle)(PHYSDEV,INT,INT,INT,INT);
241 HDC (*pResetDC)(PHYSDEV,const DEVMODEA*);
242 BOOL (*pRestoreDC)(PHYSDEV,INT);
243 BOOL (*pRoundRect)(PHYSDEV,INT,INT,INT,INT,INT,INT);
244 INT (*pSaveDC)(PHYSDEV);
245 INT (*pScaleViewportExt)(PHYSDEV,INT,INT,INT,INT);
246 INT (*pScaleWindowExt)(PHYSDEV,INT,INT,INT,INT);
247 HBITMAP (*pSelectBitmap)(PHYSDEV,HBITMAP);
248 HBRUSH (*pSelectBrush)(PHYSDEV,HBRUSH);
249 BOOL (*pSelectClipPath)(PHYSDEV,INT);
250 HFONT (*pSelectFont)(PHYSDEV,HFONT);
251 HPALETTE (*pSelectPalette)(PHYSDEV,HPALETTE,BOOL);
252 HPEN (*pSelectPen)(PHYSDEV,HPEN);
253 LONG (*pSetBitmapBits)(HBITMAP,const void*,LONG);
254 COLORREF (*pSetBkColor)(PHYSDEV,COLORREF);
255 INT (*pSetBkMode)(PHYSDEV,INT);
256 DWORD (*pSetDCOrg)(PHYSDEV,INT,INT);
257 UINT (*pSetDIBColorTable)(PHYSDEV,UINT,UINT,const RGBQUAD*);
258 INT (*pSetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
259 INT (*pSetDIBitsToDevice)(PHYSDEV,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,
260 const BITMAPINFO*,UINT);
261 VOID (*pSetDeviceClipping)(PHYSDEV,HRGN);
262 BOOL (*pSetDeviceGammaRamp)(PHYSDEV,LPVOID);
263 INT (*pSetMapMode)(PHYSDEV,INT);
264 DWORD (*pSetMapperFlags)(PHYSDEV,DWORD);
265 COLORREF (*pSetPixel)(PHYSDEV,INT,INT,COLORREF);
266 BOOL (*pSetPixelFormat)(PHYSDEV,INT,const PIXELFORMATDESCRIPTOR *);
267 INT (*pSetPolyFillMode)(PHYSDEV,INT);
268 INT (*pSetROP2)(PHYSDEV,INT);
269 INT (*pSetRelAbs)(PHYSDEV,INT);
270 INT (*pSetStretchBltMode)(PHYSDEV,INT);
271 UINT (*pSetTextAlign)(PHYSDEV,UINT);
272 INT (*pSetTextCharacterExtra)(PHYSDEV,INT);
273 DWORD (*pSetTextColor)(PHYSDEV,DWORD);
274 INT (*pSetTextJustification)(PHYSDEV,INT,INT);
275 INT (*pSetViewportExt)(PHYSDEV,INT,INT);
276 INT (*pSetViewportOrg)(PHYSDEV,INT,INT);
277 INT (*pSetWindowExt)(PHYSDEV,INT,INT);
278 INT (*pSetWindowOrg)(PHYSDEV,INT,INT);
279 BOOL (*pSetWorldTransform)(PHYSDEV,const XFORM*);
280 INT (*pStartDoc)(PHYSDEV,const DOCINFOA*);
281 INT (*pStartPage)(PHYSDEV);
282 BOOL (*pStretchBlt)(PHYSDEV,INT,INT,INT,INT,PHYSDEV,INT,INT,INT,INT,DWORD);
283 INT (*pStretchDIBits)(PHYSDEV,INT,INT,INT,INT,INT,INT,INT,INT,const void *,
284 const BITMAPINFO*,UINT,DWORD);
285 BOOL (*pStrokeAndFillPath)(PHYSDEV);
286 BOOL (*pStrokePath)(PHYSDEV);
287 BOOL (*pSwapBuffers)(PHYSDEV);
288 BOOL (*pWidenPath)(PHYSDEV);
291 /* Certain functions will do no further processing if the driver returns this.
292 Used by mfdrv for example. */
293 #define GDI_NO_MORE_WORK 2
296 #define DCHC_INVALIDVISRGN 0x0001
297 #define DCHC_DELETEDC 0x0002
299 #define DCHF_INVALIDATEVISRGN 0x0001
300 #define DCHF_VALIDATEVISRGN 0x0002
303 #define DC_SAVED 0x0002 /* It is a saved DC */
304 #define DC_DIRTY 0x0004 /* hVisRgn has to be updated */
305 #define DC_THUNKHOOK 0x0008 /* DC hook is in the 16-bit code */
307 #define GDI_HEAP_SIZE 0xffe0
309 /* extra stock object: default 1x1 bitmap for memory DCs */
310 #define DEFAULT_BITMAP (STOCK_LAST+1)
312 /* Metafile defines */
314 #define META_EOF 0x0000
315 /* values of mtType in METAHEADER. Note however that the disk image of a disk
316 based metafile has mtType == 1 */
317 #define METAFILE_MEMORY 1
318 #define METAFILE_DISK 2
320 /* Rounds a floating point number to integer. The world-to-viewport
321 * transformation process is done in floating point internally. This function
322 * is then used to round these coordinates to integer values.
324 static inline INT WINE_UNUSED GDI_ROUND(FLOAT val)
326 return (int)floor(val + 0.5);
329 /* World -> Device size conversion */
331 /* Performs a world-to-viewport transformation on the specified width (which
332 * is in floating point format).
334 static inline void WINE_UNUSED INTERNAL_XWSTODS_FLOAT(DC *dc, FLOAT *width)
336 /* Perform the transformation */
337 *width = *width * dc->xformWorld2Vport.eM11;
340 /* Performs a world-to-viewport transformation on the specified width (which
341 * is in integer format).
343 static inline INT WINE_UNUSED INTERNAL_XWSTODS(DC *dc, INT width)
347 /* Perform operation with floating point */
348 floatWidth = (FLOAT)width;
349 INTERNAL_XWSTODS_FLOAT(dc, &floatWidth);
351 /* Round to integers */
352 return GDI_ROUND(floatWidth);
356 /* Performs a world-to-viewport transformation on the specified size (which
357 * is in floating point format).
359 static inline void WINE_UNUSED INTERNAL_YWSTODS_FLOAT(DC *dc, FLOAT *height)
361 /* Perform the transformation */
362 *height = *height * dc->xformWorld2Vport.eM22;
365 /* Performs a world-to-viewport transformation on the specified size (which
366 * is in integer format).
368 static inline INT WINE_UNUSED INTERNAL_YWSTODS(DC *dc, INT height)
372 /* Perform operation with floating point */
373 floatHeight = (FLOAT)height;
374 INTERNAL_YWSTODS_FLOAT(dc, &floatHeight);
376 /* Round to integers */
377 return GDI_ROUND(floatHeight);
381 /* Device -> World size conversion */
383 /* Performs a device to world transformation on the specified width (which
384 * is in floating point format).
386 static inline void INTERNAL_XDSTOWS_FLOAT(DC *dc, FLOAT *width)
388 /* Perform the transformation */
389 *width = *width * dc->xformVport2World.eM11;
392 /* Performs a device to world transformation on the specified width (which
393 * is in integer format).
395 static inline INT INTERNAL_XDSTOWS(DC *dc, INT width)
399 /* Perform operation with floating point */
400 floatWidth = (FLOAT)width;
401 INTERNAL_XDSTOWS_FLOAT(dc, &floatWidth);
403 /* Round to integers */
404 return GDI_ROUND(floatWidth);
408 /* Performs a device to world transformation on the specified size (which
409 * is in floating point format).
411 static inline void INTERNAL_YDSTOWS_FLOAT(DC *dc, FLOAT *height)
413 /* Perform the transformation */
414 *height = *height * dc->xformVport2World.eM22;
417 /* Performs a device to world transformation on the specified size (which
418 * is in integer format).
420 static inline INT INTERNAL_YDSTOWS(DC *dc, INT height)
424 /* Perform operation with floating point */
425 floatHeight = (FLOAT)height;
426 INTERNAL_YDSTOWS_FLOAT(dc, &floatHeight);
428 /* Round to integers */
429 return GDI_ROUND(floatHeight);
433 /* Device <-> logical size conversion */
435 #define XDSTOLS(dc,x) \
436 MulDiv((x), (dc)->wndExtX, (dc)->vportExtX)
437 #define YDSTOLS(dc,y) \
438 MulDiv((y), (dc)->wndExtY, (dc)->vportExtY)
439 #define XLSTODS(dc,x) \
440 MulDiv((x), (dc)->vportExtX, (dc)->wndExtX)
441 #define YLSTODS(dc,y) \
442 MulDiv((y), (dc)->vportExtY, (dc)->wndExtY)
446 extern BOOL GDI_Init(void);
447 extern void *GDI_AllocObject( WORD, WORD, HGDIOBJ *, const struct gdi_obj_funcs *funcs );
448 extern void *GDI_ReallocObject( WORD, HGDIOBJ, void *obj );
449 extern BOOL GDI_FreeObject( HGDIOBJ, void *obj );
450 extern void *GDI_GetObjPtr( HGDIOBJ, WORD );
451 extern void GDI_ReleaseObj( HGDIOBJ );
452 extern void GDI_CheckNotLock(void);
454 extern const DC_FUNCTIONS *DRIVER_load_driver( LPCSTR name );
455 extern const DC_FUNCTIONS *DRIVER_get_driver( const DC_FUNCTIONS *funcs );
456 extern void DRIVER_release_driver( const DC_FUNCTIONS *funcs );
457 extern BOOL DRIVER_GetDriverName( LPCSTR device, LPSTR driver, DWORD size );
459 extern POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut );
461 extern DC * DC_AllocDC( const DC_FUNCTIONS *funcs, WORD magic );
462 extern DC * DC_GetDCPtr( HDC hdc );
463 extern DC * DC_GetDCUpdate( HDC hdc );
464 extern void DC_InitDC( DC * dc );
465 extern void DC_UpdateXforms( DC * dc );
468 extern void CLIPPING_UpdateGCRegion( DC * dc );
471 extern HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, BOOL on_disk );
474 extern INT WineEngAddFontResourceEx(LPCWSTR, DWORD, PVOID);
475 extern GdiFont WineEngCreateFontInstance(DC*, HFONT);
476 extern BOOL WineEngDestroyFontInstance(HFONT handle);
477 extern DWORD WineEngEnumFonts(LPLOGFONTW, DEVICEFONTENUMPROC, LPARAM);
478 extern BOOL WineEngGetCharWidth(GdiFont, UINT, UINT, LPINT);
479 extern DWORD WineEngGetFontData(GdiFont, DWORD, DWORD, LPVOID, DWORD);
480 extern DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count,
481 LPWORD pgi, DWORD flags);
482 extern DWORD WineEngGetGlyphOutline(GdiFont, UINT glyph, UINT format,
483 LPGLYPHMETRICS, DWORD buflen, LPVOID buf,
485 extern UINT WineEngGetOutlineTextMetrics(GdiFont, UINT, LPOUTLINETEXTMETRICW);
486 extern UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags);
487 extern BOOL WineEngGetTextExtentPoint(GdiFont, LPCWSTR, INT, LPSIZE);
488 extern BOOL WineEngGetTextExtentPointI(GdiFont, const WORD *, INT, LPSIZE);
489 extern INT WineEngGetTextFace(GdiFont, INT, LPWSTR);
490 extern BOOL WineEngGetTextMetrics(GdiFont, LPTEXTMETRICW);
491 extern BOOL WineEngInit(void);
492 extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID);
495 extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh);
496 extern HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh);
497 extern METAHEADER *MF_CreateMetaHeaderDisk(METAHEADER *mr, LPCSTR filename);
500 extern BOOL REGION_FrameRgn( HRGN dest, HRGN src, INT x, INT y );
503 extern HPALETTE WINAPI GDISelectPalette( HDC hdc, HPALETTE hpal, WORD wBkg);
504 extern UINT WINAPI GDIRealizePalette( HDC hdc );
508 #define PATH_IsPathOpen(path) ((path).state==PATH_Open)
509 /* Returns TRUE if the specified path is in the open state, i.e. in the
510 * state where points will be added to the path, or FALSE otherwise. This
511 * function is implemented as a macro for performance reasons.
514 extern void PATH_InitGdiPath(GdiPath *pPath);
515 extern void PATH_DestroyGdiPath(GdiPath *pPath);
516 extern BOOL PATH_AssignGdiPath(GdiPath *pPathDest, const GdiPath *pPathSrc);
518 extern BOOL PATH_MoveTo(DC *dc);
519 extern BOOL PATH_LineTo(DC *dc, INT x, INT y);
520 extern BOOL PATH_Rectangle(DC *dc, INT x1, INT y1, INT x2, INT y2);
521 extern BOOL PATH_Ellipse(DC *dc, INT x1, INT y1, INT x2, INT y2);
522 extern BOOL PATH_Arc(DC *dc, INT x1, INT y1, INT x2, INT y2,
523 INT xStart, INT yStart, INT xEnd, INT yEnd, INT lines);
524 extern BOOL PATH_PolyBezierTo(DC *dc, const POINT *pt, DWORD cbCount);
525 extern BOOL PATH_PolyBezier(DC *dc, const POINT *pt, DWORD cbCount);
526 extern BOOL PATH_PolylineTo(DC *dc, const POINT *pt, DWORD cbCount);
527 extern BOOL PATH_Polyline(DC *dc, const POINT *pt, DWORD cbCount);
528 extern BOOL PATH_Polygon(DC *dc, const POINT *pt, DWORD cbCount);
529 extern BOOL PATH_PolyPolyline(DC *dc, const POINT *pt, const DWORD *counts, DWORD polylines);
530 extern BOOL PATH_PolyPolygon(DC *dc, const POINT *pt, const INT *counts, UINT polygons);
531 extern BOOL PATH_RoundRect(DC *dc, INT x1, INT y1, INT x2, INT y2, INT ell_width, INT ell_height);
532 extern BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, BYTE flags);
535 extern LPWSTR FONT_mbtowc(HDC, LPCSTR, INT, INT*, UINT*);
537 #define WINE_GGO_GRAY16_BITMAP 0x7f
539 #endif /* __WINE_GDI_H */