gdiplus: Implement hatch brush accessor functions.

This commit is contained in:
Chris Wulff 2009-01-10 18:52:31 -05:00 committed by Alexandre Julliard
parent a2a94a49bc
commit 10637b4f0d
2 changed files with 36 additions and 3 deletions

View File

@ -717,6 +717,39 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
return Ok;
}
GpStatus WINGDIPAPI GdipGetHatchBackgroundColor(GpHatch *brush, ARGB *backcol)
{
TRACE("(%p, %p)\n", brush, backcol);
if(!brush || !backcol) return InvalidParameter;
*backcol = brush->backcol;
return Ok;
}
GpStatus WINGDIPAPI GdipGetHatchForegroundColor(GpHatch *brush, ARGB *forecol)
{
TRACE("(%p, %p)\n", brush, forecol);
if(!brush || !forecol) return InvalidParameter;
*forecol = brush->forecol;
return Ok;
}
GpStatus WINGDIPAPI GdipGetHatchStyle(GpHatch *brush, HatchStyle *hatchstyle)
{
TRACE("(%p, %p)\n", brush, hatchstyle);
if(!brush || !hatchstyle) return InvalidParameter;
*hatchstyle = brush->hatchstyle;
return Ok;
}
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
{
TRACE("(%p)\n", brush);

View File

@ -275,9 +275,9 @@
@ stdcall GdipGetGenericFontFamilyMonospace(ptr)
@ stdcall GdipGetGenericFontFamilySansSerif(ptr)
@ stdcall GdipGetGenericFontFamilySerif(ptr)
@ stub GdipGetHatchBackgroundColor
@ stub GdipGetHatchForegroundColor
@ stub GdipGetHatchStyle
@ stdcall GdipGetHatchBackgroundColor(ptr ptr)
@ stdcall GdipGetHatchForegroundColor(ptr ptr)
@ stdcall GdipGetHatchStyle(ptr ptr)
@ stub GdipGetHemfFromMetafile
@ stub GdipGetImageAttributesAdjustedPalette
@ stdcall GdipGetImageBounds(ptr ptr ptr)