gdiplus: Add some stubs for region functions.

This commit is contained in:
Huw Davies 2008-05-12 16:45:36 +01:00 committed by Alexandre Julliard
parent 17dacf90b2
commit 9bc1fc9f11
3 changed files with 42 additions and 4 deletions

View File

@ -122,9 +122,9 @@
@ stdcall GdipCreatePathIter(ptr ptr) @ stdcall GdipCreatePathIter(ptr ptr)
@ stdcall GdipCreatePen1(long long long ptr) @ stdcall GdipCreatePen1(long long long ptr)
@ stdcall GdipCreatePen2(ptr long long ptr) @ stdcall GdipCreatePen2(ptr long long ptr)
@ stub GdipCreateRegion @ stdcall GdipCreateRegion(ptr)
@ stub GdipCreateRegionHrgn @ stub GdipCreateRegionHrgn
@ stub GdipCreateRegionPath @ stdcall GdipCreateRegionPath(ptr ptr)
@ stub GdipCreateRegionRect @ stub GdipCreateRegionRect
@ stub GdipCreateRegionRectI @ stub GdipCreateRegionRectI
@ stub GdipCreateRegionRgnData @ stub GdipCreateRegionRgnData
@ -148,7 +148,7 @@
@ stdcall GdipDeletePathIter(ptr) @ stdcall GdipDeletePathIter(ptr)
@ stdcall GdipDeletePen(ptr) @ stdcall GdipDeletePen(ptr)
@ stub GdipDeletePrivateFontCollection @ stub GdipDeletePrivateFontCollection
@ stub GdipDeleteRegion @ stdcall GdipDeleteRegion(ptr)
@ stdcall GdipDeleteStringFormat(ptr) @ stdcall GdipDeleteStringFormat(ptr)
@ stdcall GdipDisposeImage(ptr) @ stdcall GdipDisposeImage(ptr)
@ stdcall GdipDisposeImageAttributes(ptr) @ stdcall GdipDisposeImageAttributes(ptr)
@ -379,7 +379,7 @@
@ stub GdipGetRegionBoundsI @ stub GdipGetRegionBoundsI
@ stub GdipGetRegionData @ stub GdipGetRegionData
@ stub GdipGetRegionDataSize @ stub GdipGetRegionDataSize
@ stub GdipGetRegionHRgn @ stdcall GdipGetRegionHRgn(ptr ptr ptr)
@ stub GdipGetRegionScans @ stub GdipGetRegionScans
@ stub GdipGetRegionScansCount @ stub GdipGetRegionScansCount
@ stub GdipGetRegionScansI @ stub GdipGetRegionScansI

View File

@ -30,6 +30,36 @@
WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
{
FIXME("(%p): stub\n", region);
*region = NULL;
return NotImplemented;
}
GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region)
{
FIXME("(%p, %p): stub\n", path, region);
*region = NULL;
return NotImplemented;
}
GpStatus WINGDIPAPI GdipDeleteRegion(GpRegion *region)
{
FIXME("(%p): stub\n", region);
return NotImplemented;
}
GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HRGN *hrgn)
{
FIXME("(%p, %p, %p): stub\n", region, graphics, hrgn);
*hrgn = NULL;
return NotImplemented;
}
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region) GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
{ {
static int calls; static int calls;

View File

@ -354,6 +354,14 @@ GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat*,GpStringForm
GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*); GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*);
GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*); GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*);
GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **);
GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *, GpRegion **);
GpStatus WINGDIPAPI GdipDeleteRegion(GpRegion *);
GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *, GpGraphics *, HRGN *);
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *);
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif