2005-12-08 23:48:53 +00:00
|
|
|
/* $Id: stubs.c 18897 2005-12-08 23:10:33Z cwittich $
|
|
|
|
*
|
|
|
|
* reactos/lib/gdi32/objects/path.c
|
|
|
|
*
|
|
|
|
* GDI32.DLL Path
|
|
|
|
*
|
|
|
|
* When you implement one of these functions,
|
|
|
|
* remove its stub from this file.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
AbortPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiAbortPath( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
BeginPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiBeginPath( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
CloseFigure(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiCloseFigure ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
EndPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiEndPath( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
FillPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiFillPath( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
FlattenPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiFlattenPath ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2007-08-31 18:19:09 +00:00
|
|
|
INT
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2007-08-31 18:19:09 +00:00
|
|
|
GetPath(HDC hdc,
|
|
|
|
LPPOINT pptlBuf,
|
|
|
|
LPBYTE pjTypes,
|
|
|
|
INT cptBuf)
|
2005-12-08 23:48:53 +00:00
|
|
|
{
|
2007-08-31 18:19:09 +00:00
|
|
|
INT retValue = -1;
|
|
|
|
|
2008-11-16 01:49:23 +00:00
|
|
|
if (GDI_HANDLE_GET_TYPE(hdc) == GDI_OBJECT_TYPE_METADC)
|
2007-08-31 18:19:09 +00:00
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
retValue = NtGdiGetPath(hdc,pptlBuf,pjTypes,cptBuf);
|
|
|
|
}
|
|
|
|
|
|
|
|
return retValue;
|
2005-12-08 23:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
HRGN
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
PathToRegion(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiPathToRegion ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
SetMiterLimit(
|
|
|
|
HDC hdc,
|
|
|
|
FLOAT a1,
|
|
|
|
PFLOAT a2
|
|
|
|
)
|
|
|
|
{
|
2008-06-17 20:19:30 +00:00
|
|
|
BOOL Ret;
|
|
|
|
gxf_long worker, worker1;
|
|
|
|
|
|
|
|
worker.f = a1;
|
|
|
|
Ret = NtGdiSetMiterLimit ( hdc, worker.l, a2 ? &worker1.l : NULL );
|
|
|
|
if (a2 && Ret) *a2 = worker1.f;
|
|
|
|
return Ret;
|
2005-12-08 23:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
StrokeAndFillPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiStrokeAndFillPath ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
StrokePath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiStrokePath ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
WidenPath(
|
|
|
|
HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiWidenPath ( hdc );
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-12-08 23:48:53 +00:00
|
|
|
SelectClipPath(
|
|
|
|
HDC hdc,
|
|
|
|
int Mode
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return NtGdiSelectClipPath ( hdc, Mode );
|
|
|
|
}
|