mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 03:52:17 +00:00
[SDK][INCLUDE] Rename Gdiplus::Graphics::graphics as nativeGraphics (#2210)
Make it w32api-compatible. CORE-16585
This commit is contained in:
parent
1a3c77dc2f
commit
8ecbb44463
2 changed files with 170 additions and 138 deletions
|
@ -57,7 +57,7 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
AddMetafileComment(const BYTE *data, UINT sizeData)
|
AddMetafileComment(const BYTE *data, UINT sizeData)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipComment(graphics, sizeData, data));
|
return SetStatus(DllExports::GdipComment(nativeGraphics, sizeData, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphicsContainer BeginContainer(VOID)
|
GraphicsContainer BeginContainer(VOID)
|
||||||
|
@ -80,75 +80,77 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
Clear(const Color &color)
|
Clear(const Color &color)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGraphicsClear(graphics, color.GetValue()));
|
return SetStatus(DllExports::GdipGraphicsClear(nativeGraphics, color.GetValue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawArc(const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
DrawArc(const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawArcI(
|
return SetStatus(DllExports::GdipDrawArcI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawArc(const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
|
DrawArc(const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawArcI(
|
return SetStatus(DllExports::GdipDrawArcI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawArc(const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
DrawArc(const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawArc(
|
return SetStatus(DllExports::GdipDrawArc(
|
||||||
graphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawArc(const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
DrawArc(const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawArcI(
|
return SetStatus(DllExports::GdipDrawArcI(
|
||||||
graphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBezier(const Pen *pen, const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
|
DrawBezier(const Pen *pen, const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawBezierI(
|
return SetStatus(DllExports::GdipDrawBezierI(
|
||||||
graphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
|
nativeGraphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBezier(const Pen *pen, const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
|
DrawBezier(const Pen *pen, const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawBezier(
|
return SetStatus(DllExports::GdipDrawBezier(
|
||||||
graphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
|
nativeGraphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBezier(const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)
|
DrawBezier(const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipDrawBezier(graphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
|
DllExports::GdipDrawBezier(nativeGraphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBezier(const Pen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)
|
DrawBezier(const Pen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipDrawBezierI(graphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
|
DllExports::GdipDrawBezierI(nativeGraphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBeziers(const Pen *pen, const Point *points, INT count)
|
DrawBeziers(const Pen *pen, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawBeziersI(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawBeziersI(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawBeziers(const Pen *pen, const PointF *points, INT count)
|
DrawBeziers(const Pen *pen, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawBeziers(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawBeziers(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -160,65 +162,67 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
DrawClosedCurve(const Pen *pen, const Point *points, INT count)
|
DrawClosedCurve(const Pen *pen, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawClosedCurveI(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawClosedCurveI(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawClosedCurve(const Pen *pen, const PointF *points, INT count)
|
DrawClosedCurve(const Pen *pen, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawClosedCurve(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawClosedCurve(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawClosedCurve(const Pen *pen, const PointF *points, INT count, REAL tension)
|
DrawClosedCurve(const Pen *pen, const PointF *points, INT count, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipDrawClosedCurve2(graphics, pen ? pen->nativePen : NULL, points, count, tension));
|
DllExports::GdipDrawClosedCurve2(nativeGraphics, pen ? pen->nativePen : NULL, points, count, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawClosedCurve(const Pen *pen, const Point *points, INT count, REAL tension)
|
DrawClosedCurve(const Pen *pen, const Point *points, INT count, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipDrawClosedCurve2I(graphics, pen ? pen->nativePen : NULL, points, count, tension));
|
DllExports::GdipDrawClosedCurve2I(nativeGraphics, pen ? pen->nativePen : NULL, points, count, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const Point *points, INT count)
|
DrawCurve(const Pen *pen, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurveI(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawCurveI(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const PointF *points, INT count)
|
DrawCurve(const Pen *pen, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurve(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawCurve(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const PointF *points, INT count, REAL tension)
|
DrawCurve(const Pen *pen, const PointF *points, INT count, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurve2(graphics, pen ? pen->nativePen : NULL, points, count, tension));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawCurve2(nativeGraphics, pen ? pen->nativePen : NULL, points, count, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const Point *points, INT count, INT offset, INT numberOfSegments, REAL tension)
|
DrawCurve(const Pen *pen, const Point *points, INT count, INT offset, INT numberOfSegments, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurve3I(
|
return SetStatus(DllExports::GdipDrawCurve3I(
|
||||||
graphics, pen ? pen->nativePen : NULL, points, count, offset, numberOfSegments, tension));
|
nativeGraphics, pen ? pen->nativePen : NULL, points, count, offset, numberOfSegments, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const PointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)
|
DrawCurve(const Pen *pen, const PointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurve3(
|
return SetStatus(DllExports::GdipDrawCurve3(
|
||||||
graphics, pen ? pen->nativePen : NULL, points, count, offset, numberOfSegments, tension));
|
nativeGraphics, pen ? pen->nativePen : NULL, points, count, offset, numberOfSegments, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawCurve(const Pen *pen, const Point *points, INT count, REAL tension)
|
DrawCurve(const Pen *pen, const Point *points, INT count, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawCurve2I(graphics, pen ? pen->nativePen : NULL, points, count, tension));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawCurve2I(nativeGraphics, pen ? pen->nativePen : NULL, points, count, tension));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -238,26 +242,27 @@ class Graphics : public GdiplusBase
|
||||||
DrawEllipse(const Pen *pen, const Rect &rect)
|
DrawEllipse(const Pen *pen, const Rect &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawEllipseI(
|
return SetStatus(DllExports::GdipDrawEllipseI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawEllipse(const Pen *pen, REAL x, REAL y, REAL width, REAL height)
|
DrawEllipse(const Pen *pen, REAL x, REAL y, REAL width, REAL height)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawEllipse(graphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
return SetStatus(DllExports::GdipDrawEllipse(nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawEllipse(const Pen *pen, const RectF &rect)
|
DrawEllipse(const Pen *pen, const RectF &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawEllipse(
|
return SetStatus(DllExports::GdipDrawEllipse(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawEllipse(const Pen *pen, INT x, INT y, INT width, INT height)
|
DrawEllipse(const Pen *pen, INT x, INT y, INT width, INT height)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawEllipseI(graphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawEllipseI(nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -401,37 +406,39 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
DrawLine(const Pen *pen, const Point &pt1, const Point &pt2)
|
DrawLine(const Pen *pen, const Point &pt1, const Point &pt2)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLineI(graphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawLineI(nativeGraphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawLine(const Pen *pen, const PointF &pt1, const Point &pt2)
|
DrawLine(const Pen *pen, const PointF &pt1, const Point &pt2)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLine(graphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawLine(nativeGraphics, pen ? pen->nativePen : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawLine(const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2)
|
DrawLine(const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLine(graphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2));
|
return SetStatus(DllExports::GdipDrawLine(nativeGraphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawLine(const Pen *pen, INT x1, INT y1, INT x2, INT y2)
|
DrawLine(const Pen *pen, INT x1, INT y1, INT x2, INT y2)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLine(graphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2));
|
return SetStatus(DllExports::GdipDrawLine(nativeGraphics, pen ? pen->nativePen : NULL, x1, y1, x2, y2));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawLines(const Pen *pen, const Point *points, INT count)
|
DrawLines(const Pen *pen, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLinesI(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawLinesI(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawLines(const Pen *pen, const PointF *points, INT count)
|
DrawLines(const Pen *pen, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawLines(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawLines(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -444,78 +451,82 @@ class Graphics : public GdiplusBase
|
||||||
DrawPie(const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
DrawPie(const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPieI(
|
return SetStatus(DllExports::GdipDrawPieI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawPie(const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
DrawPie(const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPieI(
|
return SetStatus(DllExports::GdipDrawPieI(
|
||||||
graphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawPie(const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
DrawPie(const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPie(
|
return SetStatus(DllExports::GdipDrawPie(
|
||||||
graphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawPie(const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
|
DrawPie(const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPie(
|
return SetStatus(DllExports::GdipDrawPie(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawPolygon(const Pen *pen, const Point *points, INT count)
|
DrawPolygon(const Pen *pen, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPolygonI(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawPolygonI(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawPolygon(const Pen *pen, const PointF *points, INT count)
|
DrawPolygon(const Pen *pen, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawPolygon(graphics, pen ? pen->nativePen : NULL, points, count));
|
return SetStatus(DllExports::GdipDrawPolygon(nativeGraphics, pen ? pen->nativePen : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangle(const Pen *pen, const Rect &rect)
|
DrawRectangle(const Pen *pen, const Rect &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectangleI(
|
return SetStatus(DllExports::GdipDrawRectangleI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangle(const Pen *pen, INT x, INT y, INT width, INT height)
|
DrawRectangle(const Pen *pen, INT x, INT y, INT width, INT height)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectangleI(graphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawRectangleI(nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangle(const Pen *pen, REAL x, REAL y, REAL width, REAL height)
|
DrawRectangle(const Pen *pen, REAL x, REAL y, REAL width, REAL height)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectangle(graphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
return SetStatus(
|
||||||
|
DllExports::GdipDrawRectangle(nativeGraphics, pen ? pen->nativePen : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangle(const Pen *pen, const RectF &rect)
|
DrawRectangle(const Pen *pen, const RectF &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectangleI(
|
return SetStatus(DllExports::GdipDrawRectangleI(
|
||||||
graphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, pen ? pen->nativePen : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangles(const Pen *pen, const Rect *rects, INT count)
|
DrawRectangles(const Pen *pen, const Rect *rects, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectanglesI(graphics, pen ? pen->nativePen : NULL, rects, count));
|
return SetStatus(DllExports::GdipDrawRectanglesI(nativeGraphics, pen ? pen->nativePen : NULL, rects, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
DrawRectangles(const Pen *pen, const RectF *rects, INT count)
|
DrawRectangles(const Pen *pen, const RectF *rects, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipDrawRectangles(graphics, pen ? pen->nativePen : NULL, rects, count));
|
return SetStatus(DllExports::GdipDrawRectangles(nativeGraphics, pen ? pen->nativePen : NULL, rects, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -551,7 +562,7 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
EndContainer(GraphicsContainer state)
|
EndContainer(GraphicsContainer state)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipEndContainer(graphics, state));
|
return SetStatus(DllExports::GdipEndContainer(nativeGraphics, state));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -723,54 +734,57 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
FillClosedCurve(const Brush *brush, const Point *points, INT count)
|
FillClosedCurve(const Brush *brush, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillClosedCurveI(graphics, brush ? brush->nativeBrush : NULL, points, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillClosedCurveI(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillClosedCurve(const Brush *brush, const Point *points, INT count, FillMode fillMode, REAL tension)
|
FillClosedCurve(const Brush *brush, const Point *points, INT count, FillMode fillMode, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillClosedCurve2I(
|
return SetStatus(DllExports::GdipFillClosedCurve2I(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, points, count, tension, fillMode));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, points, count, tension, fillMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillClosedCurve(const Brush *brush, const PointF *points, INT count)
|
FillClosedCurve(const Brush *brush, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillClosedCurve(graphics, brush ? brush->nativeBrush : NULL, points, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillClosedCurve(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillClosedCurve(const Brush *brush, const PointF *points, INT count, FillMode fillMode, REAL tension)
|
FillClosedCurve(const Brush *brush, const PointF *points, INT count, FillMode fillMode, REAL tension)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillClosedCurve2(
|
return SetStatus(DllExports::GdipFillClosedCurve2(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, points, count, tension, fillMode));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, points, count, tension, fillMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillEllipse(const Brush *brush, const Rect &rect)
|
FillEllipse(const Brush *brush, const Rect &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillEllipseI(
|
return SetStatus(DllExports::GdipFillEllipseI(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillEllipse(const Brush *brush, REAL x, REAL y, REAL width, REAL height)
|
FillEllipse(const Brush *brush, REAL x, REAL y, REAL width, REAL height)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillEllipse(graphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillEllipse(nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillEllipse(const Brush *brush, const RectF &rect)
|
FillEllipse(const Brush *brush, const RectF &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillEllipse(
|
return SetStatus(DllExports::GdipFillEllipse(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillEllipse(const Brush *brush, INT x, INT y, INT width, INT height)
|
FillEllipse(const Brush *brush, INT x, INT y, INT width, INT height)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipFillEllipseI(graphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
DllExports::GdipFillEllipseI(nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -783,7 +797,7 @@ class Graphics : public GdiplusBase
|
||||||
FillPie(const Brush *brush, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
FillPie(const Brush *brush, const Rect &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPieI(
|
return SetStatus(DllExports::GdipFillPieI(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
sweepAngle));
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -791,88 +805,92 @@ class Graphics : public GdiplusBase
|
||||||
FillPie(const Brush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
FillPie(const Brush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPieI(
|
return SetStatus(DllExports::GdipFillPieI(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPie(const Brush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
FillPie(const Brush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPie(
|
return SetStatus(DllExports::GdipFillPie(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, x, y, width, height, startAngle, sweepAngle));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height, startAngle, sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPie(const Brush *brush, RectF &rect, REAL startAngle, REAL sweepAngle)
|
FillPie(const Brush *brush, RectF &rect, REAL startAngle, REAL sweepAngle)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPie(
|
return SetStatus(DllExports::GdipFillPie(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
|
||||||
sweepAngle));
|
sweepAngle));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPolygon(const Brush *brush, const Point *points, INT count)
|
FillPolygon(const Brush *brush, const Point *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPolygon2I(graphics, brush ? brush->nativeBrush : NULL, points, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillPolygon2I(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPolygon(const Brush *brush, const PointF *points, INT count)
|
FillPolygon(const Brush *brush, const PointF *points, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillPolygon2(graphics, brush ? brush->nativeBrush : NULL, points, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillPolygon2(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPolygon(const Brush *brush, const Point *points, INT count, FillMode fillMode)
|
FillPolygon(const Brush *brush, const Point *points, INT count, FillMode fillMode)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipFillPolygonI(graphics, brush ? brush->nativeBrush : NULL, points, count, fillMode));
|
DllExports::GdipFillPolygonI(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count, fillMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillPolygon(const Brush *brush, const PointF *points, INT count, FillMode fillMode)
|
FillPolygon(const Brush *brush, const PointF *points, INT count, FillMode fillMode)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipFillPolygon(graphics, brush ? brush->nativeBrush : NULL, points, count, fillMode));
|
DllExports::GdipFillPolygon(nativeGraphics, brush ? brush->nativeBrush : NULL, points, count, fillMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangle(const Brush *brush, const Rect &rect)
|
FillRectangle(const Brush *brush, const Rect &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillRectangleI(
|
return SetStatus(DllExports::GdipFillRectangleI(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangle(const Brush *brush, const RectF &rect)
|
FillRectangle(const Brush *brush, const RectF &rect)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillRectangle(
|
return SetStatus(DllExports::GdipFillRectangle(
|
||||||
graphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
nativeGraphics, brush ? brush->nativeBrush : NULL, rect.X, rect.Y, rect.Width, rect.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangle(const Brush *brush, REAL x, REAL y, REAL width, REAL height)
|
FillRectangle(const Brush *brush, REAL x, REAL y, REAL width, REAL height)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipFillRectangle(graphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
DllExports::GdipFillRectangle(nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangle(const Brush *brush, INT x, INT y, INT width, INT height)
|
FillRectangle(const Brush *brush, INT x, INT y, INT width, INT height)
|
||||||
{
|
{
|
||||||
return SetStatus(
|
return SetStatus(
|
||||||
DllExports::GdipFillRectangleI(graphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
DllExports::GdipFillRectangleI(nativeGraphics, brush ? brush->nativeBrush : NULL, x, y, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangles(const Brush *brush, const Rect *rects, INT count)
|
FillRectangles(const Brush *brush, const Rect *rects, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillRectanglesI(graphics, brush ? brush->nativeBrush : NULL, rects, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillRectanglesI(nativeGraphics, brush ? brush->nativeBrush : NULL, rects, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
FillRectangles(const Brush *brush, const RectF *rects, INT count)
|
FillRectangles(const Brush *brush, const RectF *rects, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipFillRectangles(graphics, brush ? brush->nativeBrush : NULL, rects, count));
|
return SetStatus(
|
||||||
|
DllExports::GdipFillRectangles(nativeGraphics, brush ? brush->nativeBrush : NULL, rects, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -919,40 +937,40 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
GetClipBounds(Rect *rect) const
|
GetClipBounds(Rect *rect) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetClipBoundsI(graphics, rect));
|
return SetStatus(DllExports::GdipGetClipBoundsI(nativeGraphics, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
GetClipBounds(RectF *rect) const
|
GetClipBounds(RectF *rect) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetClipBounds(graphics, rect));
|
return SetStatus(DllExports::GdipGetClipBounds(nativeGraphics, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
CompositingMode GetCompositingMode(VOID)
|
CompositingMode GetCompositingMode(VOID)
|
||||||
{
|
{
|
||||||
CompositingMode compositingMode;
|
CompositingMode compositingMode;
|
||||||
SetStatus(DllExports::GdipGetCompositingMode(graphics, &compositingMode));
|
SetStatus(DllExports::GdipGetCompositingMode(nativeGraphics, &compositingMode));
|
||||||
return compositingMode;
|
return compositingMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
CompositingQuality GetCompositingQuality(VOID)
|
CompositingQuality GetCompositingQuality(VOID)
|
||||||
{
|
{
|
||||||
CompositingQuality compositingQuality;
|
CompositingQuality compositingQuality;
|
||||||
SetStatus(DllExports::GdipGetCompositingQuality(graphics, &compositingQuality));
|
SetStatus(DllExports::GdipGetCompositingQuality(nativeGraphics, &compositingQuality));
|
||||||
return compositingQuality;
|
return compositingQuality;
|
||||||
}
|
}
|
||||||
|
|
||||||
REAL GetDpiX(VOID)
|
REAL GetDpiX(VOID)
|
||||||
{
|
{
|
||||||
REAL dpi;
|
REAL dpi;
|
||||||
SetStatus(DllExports::GdipGetDpiX(graphics, &dpi));
|
SetStatus(DllExports::GdipGetDpiX(nativeGraphics, &dpi));
|
||||||
return dpi;
|
return dpi;
|
||||||
}
|
}
|
||||||
|
|
||||||
REAL GetDpiY(VOID)
|
REAL GetDpiY(VOID)
|
||||||
{
|
{
|
||||||
REAL dpi;
|
REAL dpi;
|
||||||
SetStatus(DllExports::GdipGetDpiY(graphics, &dpi));
|
SetStatus(DllExports::GdipGetDpiY(nativeGraphics, &dpi));
|
||||||
return dpi;
|
return dpi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -969,7 +987,7 @@ class Graphics : public GdiplusBase
|
||||||
InterpolationMode GetInterpolationMode(VOID)
|
InterpolationMode GetInterpolationMode(VOID)
|
||||||
{
|
{
|
||||||
InterpolationMode interpolationMode;
|
InterpolationMode interpolationMode;
|
||||||
SetStatus(DllExports::GdipGetInterpolationMode(graphics, &interpolationMode));
|
SetStatus(DllExports::GdipGetInterpolationMode(nativeGraphics, &interpolationMode));
|
||||||
return interpolationMode;
|
return interpolationMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -987,48 +1005,49 @@ class Graphics : public GdiplusBase
|
||||||
REAL GetPageScale(VOID)
|
REAL GetPageScale(VOID)
|
||||||
{
|
{
|
||||||
REAL scale;
|
REAL scale;
|
||||||
SetStatus(DllExports::GdipGetPageScale(graphics, &scale));
|
SetStatus(DllExports::GdipGetPageScale(nativeGraphics, &scale));
|
||||||
return scale;
|
return scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
Unit GetPageUnit(VOID)
|
Unit GetPageUnit(VOID)
|
||||||
{
|
{
|
||||||
Unit unit;
|
Unit unit;
|
||||||
SetStatus(DllExports::GdipGetPageUnit(graphics, &unit));
|
SetStatus(DllExports::GdipGetPageUnit(nativeGraphics, &unit));
|
||||||
return unit;
|
return unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
PixelOffsetMode GetPixelOffsetMode(VOID)
|
PixelOffsetMode GetPixelOffsetMode(VOID)
|
||||||
{
|
{
|
||||||
PixelOffsetMode pixelOffsetMode;
|
PixelOffsetMode pixelOffsetMode;
|
||||||
SetStatus(DllExports::GdipGetPixelOffsetMode(graphics, &pixelOffsetMode));
|
SetStatus(DllExports::GdipGetPixelOffsetMode(nativeGraphics, &pixelOffsetMode));
|
||||||
return pixelOffsetMode;
|
return pixelOffsetMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
GetRenderingOrigin(INT *x, INT *y)
|
GetRenderingOrigin(INT *x, INT *y)
|
||||||
{
|
{
|
||||||
return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipGetRenderingOrigin(graphics, x, y));
|
return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipGetRenderingOrigin(nativeGraphics, x,
|
||||||
|
// y));
|
||||||
}
|
}
|
||||||
|
|
||||||
SmoothingMode GetSmoothingMode(VOID) const
|
SmoothingMode GetSmoothingMode(VOID) const
|
||||||
{
|
{
|
||||||
SmoothingMode smoothingMode;
|
SmoothingMode smoothingMode;
|
||||||
SetStatus(DllExports::GdipGetSmoothingMode(graphics, &smoothingMode));
|
SetStatus(DllExports::GdipGetSmoothingMode(nativeGraphics, &smoothingMode));
|
||||||
return smoothingMode;
|
return smoothingMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT GetTextContrast(VOID) const
|
UINT GetTextContrast(VOID) const
|
||||||
{
|
{
|
||||||
UINT contrast;
|
UINT contrast;
|
||||||
SetStatus(DllExports::GdipGetTextContrast(graphics, &contrast));
|
SetStatus(DllExports::GdipGetTextContrast(nativeGraphics, &contrast));
|
||||||
return contrast;
|
return contrast;
|
||||||
}
|
}
|
||||||
|
|
||||||
TextRenderingHint GetTextRenderingHint(VOID) const
|
TextRenderingHint GetTextRenderingHint(VOID) const
|
||||||
{
|
{
|
||||||
TextRenderingHint mode;
|
TextRenderingHint mode;
|
||||||
SetStatus(DllExports::GdipGetTextRenderingHint(graphics, &mode));
|
SetStatus(DllExports::GdipGetTextRenderingHint(nativeGraphics, &mode));
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1041,13 +1060,13 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
GetVisibleClipBounds(Rect *rect) const
|
GetVisibleClipBounds(Rect *rect) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetVisibleClipBoundsI(graphics, rect));
|
return SetStatus(DllExports::GdipGetVisibleClipBoundsI(nativeGraphics, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
GetVisibleClipBounds(RectF *rect) const
|
GetVisibleClipBounds(RectF *rect) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetVisibleClipBounds(graphics, rect));
|
return SetStatus(DllExports::GdipGetVisibleClipBounds(nativeGraphics, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -1071,7 +1090,7 @@ class Graphics : public GdiplusBase
|
||||||
BOOL IsClipEmpty(VOID) const
|
BOOL IsClipEmpty(VOID) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsClipEmpty(graphics, &result));
|
SetStatus(DllExports::GdipIsClipEmpty(nativeGraphics, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1079,7 +1098,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(const Point &point) const
|
IsVisible(const Point &point) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisiblePointI(graphics, point.X, point.Y, &result));
|
SetStatus(DllExports::GdipIsVisiblePointI(nativeGraphics, point.X, point.Y, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1087,7 +1106,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(const Rect &rect) const
|
IsVisible(const Rect &rect) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRectI(graphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
|
SetStatus(DllExports::GdipIsVisibleRectI(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1095,7 +1114,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(REAL x, REAL y) const
|
IsVisible(REAL x, REAL y) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisiblePoint(graphics, x, y, &result));
|
SetStatus(DllExports::GdipIsVisiblePoint(nativeGraphics, x, y, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1103,7 +1122,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(const RectF &rect) const
|
IsVisible(const RectF &rect) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRect(graphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
|
SetStatus(DllExports::GdipIsVisibleRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1111,7 +1130,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(INT x, INT y, INT width, INT height) const
|
IsVisible(INT x, INT y, INT width, INT height) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRectI(graphics, x, y, width, height, &result));
|
SetStatus(DllExports::GdipIsVisibleRectI(nativeGraphics, x, y, width, height, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1119,7 +1138,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(INT x, INT y) const
|
IsVisible(INT x, INT y) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisiblePointI(graphics, x, y, &result));
|
SetStatus(DllExports::GdipIsVisiblePointI(nativeGraphics, x, y, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1127,7 +1146,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(const PointF &point) const
|
IsVisible(const PointF &point) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisiblePoint(graphics, point.X, point.Y, &result));
|
SetStatus(DllExports::GdipIsVisiblePoint(nativeGraphics, point.X, point.Y, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1135,7 +1154,7 @@ class Graphics : public GdiplusBase
|
||||||
IsVisible(REAL x, REAL y, REAL width, REAL height) const
|
IsVisible(REAL x, REAL y, REAL width, REAL height) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRect(graphics, x, y, width, height, &result));
|
SetStatus(DllExports::GdipIsVisibleRect(nativeGraphics, x, y, width, height, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1143,7 +1162,7 @@ class Graphics : public GdiplusBase
|
||||||
{
|
{
|
||||||
return FALSE; /* FIXME: not available:
|
return FALSE; /* FIXME: not available:
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleClipEmpty(graphics, &result));
|
SetStatus(DllExports::GdipIsVisibleClipEmpty(nativeGraphics, &result));
|
||||||
return result;*/
|
return result;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1238,12 +1257,12 @@ class Graphics : public GdiplusBase
|
||||||
|
|
||||||
Status ResetClip(VOID)
|
Status ResetClip(VOID)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipResetClip(graphics));
|
return SetStatus(DllExports::GdipResetClip(nativeGraphics));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status ResetTransform(VOID)
|
Status ResetTransform(VOID)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipResetWorldTransform(graphics));
|
return SetStatus(DllExports::GdipResetWorldTransform(nativeGraphics));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -1255,7 +1274,7 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
RotateTransform(REAL angle, MatrixOrder order)
|
RotateTransform(REAL angle, MatrixOrder order)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipRotateWorldTransform(graphics, angle, order));
|
return SetStatus(DllExports::GdipRotateWorldTransform(nativeGraphics, angle, order));
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphicsState Save(VOID)
|
GraphicsState Save(VOID)
|
||||||
|
@ -1266,13 +1285,13 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
ScaleTransform(REAL sx, REAL sy, MatrixOrder order)
|
ScaleTransform(REAL sx, REAL sy, MatrixOrder order)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipScaleWorldTransform(graphics, sx, sy, order));
|
return SetStatus(DllExports::GdipScaleWorldTransform(nativeGraphics, sx, sy, order));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetClip(const Graphics *g, CombineMode combineMode)
|
SetClip(const Graphics *g, CombineMode combineMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetClipGraphics(graphics, g ? g->graphics : NULL, combineMode));
|
return SetStatus(DllExports::GdipSetClipGraphics(nativeGraphics, g ? g->nativeGraphics : NULL, combineMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -1290,79 +1309,81 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
SetClip(const Rect &rect, CombineMode combineMode)
|
SetClip(const Rect &rect, CombineMode combineMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetClipRectI(graphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
|
return SetStatus(
|
||||||
|
DllExports::GdipSetClipRectI(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetClip(HRGN hRgn, CombineMode combineMode)
|
SetClip(HRGN hRgn, CombineMode combineMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetClipHrgn(graphics, hRgn, combineMode));
|
return SetStatus(DllExports::GdipSetClipHrgn(nativeGraphics, hRgn, combineMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetClip(const RectF &rect, CombineMode combineMode)
|
SetClip(const RectF &rect, CombineMode combineMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetClipRect(graphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
|
return SetStatus(
|
||||||
|
DllExports::GdipSetClipRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetCompositingMode(CompositingMode compositingMode)
|
SetCompositingMode(CompositingMode compositingMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetCompositingMode(graphics, compositingMode));
|
return SetStatus(DllExports::GdipSetCompositingMode(nativeGraphics, compositingMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetCompositingQuality(CompositingQuality compositingQuality)
|
SetCompositingQuality(CompositingQuality compositingQuality)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetCompositingQuality(graphics, compositingQuality));
|
return SetStatus(DllExports::GdipSetCompositingQuality(nativeGraphics, compositingQuality));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetInterpolationMode(InterpolationMode interpolationMode)
|
SetInterpolationMode(InterpolationMode interpolationMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetInterpolationMode(graphics, interpolationMode));
|
return SetStatus(DllExports::GdipSetInterpolationMode(nativeGraphics, interpolationMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetPageScale(REAL scale)
|
SetPageScale(REAL scale)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetPageScale(graphics, scale));
|
return SetStatus(DllExports::GdipSetPageScale(nativeGraphics, scale));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetPageUnit(Unit unit)
|
SetPageUnit(Unit unit)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetPageUnit(graphics, unit));
|
return SetStatus(DllExports::GdipSetPageUnit(nativeGraphics, unit));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetPixelOffsetMode(PixelOffsetMode pixelOffsetMode)
|
SetPixelOffsetMode(PixelOffsetMode pixelOffsetMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetPixelOffsetMode(graphics, pixelOffsetMode));
|
return SetStatus(DllExports::GdipSetPixelOffsetMode(nativeGraphics, pixelOffsetMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetRenderingOrigin(INT x, INT y)
|
SetRenderingOrigin(INT x, INT y)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetRenderingOrigin(graphics, x, y));
|
return SetStatus(DllExports::GdipSetRenderingOrigin(nativeGraphics, x, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetSmoothingMode(SmoothingMode smoothingMode)
|
SetSmoothingMode(SmoothingMode smoothingMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetSmoothingMode(graphics, smoothingMode));
|
return SetStatus(DllExports::GdipSetSmoothingMode(nativeGraphics, smoothingMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetTextContrast(UINT contrast)
|
SetTextContrast(UINT contrast)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetTextContrast(graphics, contrast));
|
return SetStatus(DllExports::GdipSetTextContrast(nativeGraphics, contrast));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
SetTextRenderingHint(TextRenderingHint newMode)
|
SetTextRenderingHint(TextRenderingHint newMode)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipSetTextRenderingHint(graphics, newMode));
|
return SetStatus(DllExports::GdipSetTextRenderingHint(nativeGraphics, newMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -1374,25 +1395,25 @@ class Graphics : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
TransformPoints(CoordinateSpace destSpace, CoordinateSpace srcSpace, Point *pts, INT count)
|
TransformPoints(CoordinateSpace destSpace, CoordinateSpace srcSpace, Point *pts, INT count)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipTransformPointsI(graphics, destSpace, srcSpace, pts, count));
|
return SetStatus(DllExports::GdipTransformPointsI(nativeGraphics, destSpace, srcSpace, pts, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
TranslateClip(INT dx, INT dy)
|
TranslateClip(INT dx, INT dy)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipTranslateClipI(graphics, dx, dy));
|
return SetStatus(DllExports::GdipTranslateClipI(nativeGraphics, dx, dy));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
TranslateClip(REAL dx, REAL dy)
|
TranslateClip(REAL dx, REAL dy)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipTranslateClip(graphics, dx, dy));
|
return SetStatus(DllExports::GdipTranslateClip(nativeGraphics, dx, dy));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
TranslateTransform(REAL dx, REAL dy, MatrixOrder order)
|
TranslateTransform(REAL dx, REAL dy, MatrixOrder order)
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipTranslateWorldTransform(graphics, dx, dy, order));
|
return SetStatus(DllExports::GdipTranslateWorldTransform(nativeGraphics, dx, dy, order));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -1408,12 +1429,19 @@ class Graphics : public GdiplusBase
|
||||||
VOID
|
VOID
|
||||||
SetGraphics(GpGraphics *graphics)
|
SetGraphics(GpGraphics *graphics)
|
||||||
{
|
{
|
||||||
this->graphics = graphics;
|
nativeGraphics = graphics;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
|
GpGraphics *nativeGraphics;
|
||||||
mutable Status status;
|
mutable Status status;
|
||||||
GpGraphics *graphics;
|
|
||||||
|
// get native
|
||||||
|
friend inline GpGraphics *&
|
||||||
|
getNat(const Graphics *graph)
|
||||||
|
{
|
||||||
|
return const_cast<Graphics *>(graph)->nativeGraphics;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _GDIPLUSGRAPHICS_H */
|
#endif /* _GDIPLUSGRAPHICS_H */
|
||||||
|
|
|
@ -386,6 +386,10 @@ class Image : public GdiplusBase
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// get native
|
||||||
|
GpGraphics *&
|
||||||
|
getNat(const Graphics *graph);
|
||||||
|
|
||||||
class Bitmap : public Image
|
class Bitmap : public Image
|
||||||
{
|
{
|
||||||
friend class CachedBitmap;
|
friend class CachedBitmap;
|
||||||
|
@ -399,7 +403,7 @@ class Bitmap : public Image
|
||||||
Bitmap(INT width, INT height, Graphics *target)
|
Bitmap(INT width, INT height, Graphics *target)
|
||||||
{
|
{
|
||||||
GpBitmap *bitmap = NULL;
|
GpBitmap *bitmap = NULL;
|
||||||
lastStatus = DllExports::GdipCreateBitmapFromGraphics(width, height, target ? target->graphics : NULL, &bitmap);
|
lastStatus = DllExports::GdipCreateBitmapFromGraphics(width, height, target ? getNat(target) : NULL, &bitmap);
|
||||||
SetNativeImage(bitmap);
|
SetNativeImage(bitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,7 +632,7 @@ class CachedBitmap : public GdiplusBase
|
||||||
{
|
{
|
||||||
nativeCachedBitmap = NULL;
|
nativeCachedBitmap = NULL;
|
||||||
lastStatus = DllExports::GdipCreateCachedBitmap(
|
lastStatus = DllExports::GdipCreateCachedBitmap(
|
||||||
bitmap->GetNativeBitmap(), graphics ? graphics->graphics : NULL, &nativeCachedBitmap);
|
bitmap->GetNativeBitmap(), graphics ? getNat(graphics) : NULL, &nativeCachedBitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
~CachedBitmap()
|
~CachedBitmap()
|
||||||
|
@ -913,7 +917,7 @@ class Font : public GdiplusBase
|
||||||
GetHeight(const Graphics *graphics) const
|
GetHeight(const Graphics *graphics) const
|
||||||
{
|
{
|
||||||
REAL height;
|
REAL height;
|
||||||
SetStatus(DllExports::GdipGetFontHeight(font, graphics ? graphics->graphics : NULL, &height));
|
SetStatus(DllExports::GdipGetFontHeight(font, graphics ? getNat(graphics) : NULL, &height));
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -934,13 +938,13 @@ class Font : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
GetLogFontA(const Graphics *g, LOGFONTA *logfontA) const
|
GetLogFontA(const Graphics *g, LOGFONTA *logfontA) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetLogFontA(font, g ? g->graphics : NULL, logfontA));
|
return SetStatus(DllExports::GdipGetLogFontA(font, g ? getNat(g) : NULL, logfontA));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
GetLogFontW(const Graphics *g, LOGFONTW *logfontW) const
|
GetLogFontW(const Graphics *g, LOGFONTW *logfontW) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetLogFontW(font, g ? g->graphics : NULL, logfontW));
|
return SetStatus(DllExports::GdipGetLogFontW(font, g ? getNat(g) : NULL, logfontW));
|
||||||
}
|
}
|
||||||
|
|
||||||
REAL
|
REAL
|
||||||
|
@ -1067,8 +1071,8 @@ class Region : public GdiplusBase
|
||||||
Equals(const Region *region, const Graphics *g) const
|
Equals(const Region *region, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsEqualRegion(
|
SetStatus(
|
||||||
this->region, region ? region->region : NULL, g ? g->graphics : NULL, &result));
|
DllExports::GdipIsEqualRegion(this->region, region ? region->region : NULL, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1106,13 +1110,13 @@ class Region : public GdiplusBase
|
||||||
Status
|
Status
|
||||||
GetBounds(Rect *rect, const Graphics *g) const
|
GetBounds(Rect *rect, const Graphics *g) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetRegionBoundsI(region, g ? g->graphics : NULL, rect));
|
return SetStatus(DllExports::GdipGetRegionBoundsI(region, g ? getNat(g) : NULL, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
GetBounds(RectF *rect, const Graphics *g) const
|
GetBounds(RectF *rect, const Graphics *g) const
|
||||||
{
|
{
|
||||||
return SetStatus(DllExports::GdipGetRegionBounds(region, g ? g->graphics : NULL, rect));
|
return SetStatus(DllExports::GdipGetRegionBounds(region, g ? getNat(g) : NULL, rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status
|
Status
|
||||||
|
@ -1133,7 +1137,7 @@ class Region : public GdiplusBase
|
||||||
GetHRGN(const Graphics *g) const
|
GetHRGN(const Graphics *g) const
|
||||||
{
|
{
|
||||||
HRGN hRgn;
|
HRGN hRgn;
|
||||||
SetStatus(DllExports::GdipGetRegionHRgn(region, g ? g->graphics : NULL, &hRgn));
|
SetStatus(DllExports::GdipGetRegionHRgn(region, g ? getNat(g) : NULL, &hRgn));
|
||||||
return hRgn;
|
return hRgn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1193,7 +1197,7 @@ class Region : public GdiplusBase
|
||||||
IsEmpty(const Graphics *g) const
|
IsEmpty(const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsEmptyRegion(region, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsEmptyRegion(region, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1201,7 +1205,7 @@ class Region : public GdiplusBase
|
||||||
IsInfinite(const Graphics *g) const
|
IsInfinite(const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsInfiniteRegion(region, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsInfiniteRegion(region, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1209,7 +1213,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(const PointF &point, const Graphics *g) const
|
IsVisible(const PointF &point, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionPoint(region, point.X, point.Y, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionPoint(region, point.X, point.Y, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1218,7 +1222,7 @@ class Region : public GdiplusBase
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionRect(
|
SetStatus(DllExports::GdipIsVisibleRegionRect(
|
||||||
region, rect.X, rect.Y, rect.Width, rect.Height, g ? g->graphics : NULL, &result));
|
region, rect.X, rect.Y, rect.Width, rect.Height, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1227,7 +1231,7 @@ class Region : public GdiplusBase
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionRectI(
|
SetStatus(DllExports::GdipIsVisibleRegionRectI(
|
||||||
region, rect.X, rect.Y, rect.Width, rect.Height, g ? g->graphics : NULL, &result));
|
region, rect.X, rect.Y, rect.Width, rect.Height, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1235,7 +1239,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(INT x, INT y, const Graphics *g) const
|
IsVisible(INT x, INT y, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionPointI(region, x, y, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionPointI(region, x, y, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1243,7 +1247,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(REAL x, REAL y, const Graphics *g) const
|
IsVisible(REAL x, REAL y, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionPoint(region, x, y, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionPoint(region, x, y, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1251,7 +1255,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(INT x, INT y, INT width, INT height, const Graphics *g) const
|
IsVisible(INT x, INT y, INT width, INT height, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionRectI(region, x, y, width, height, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionRectI(region, x, y, width, height, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1259,7 +1263,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(const Point &point, const Graphics *g) const
|
IsVisible(const Point &point, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionPointI(region, point.X, point.Y, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionPointI(region, point.X, point.Y, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1267,7 +1271,7 @@ class Region : public GdiplusBase
|
||||||
IsVisible(REAL x, REAL y, REAL width, REAL height, const Graphics *g) const
|
IsVisible(REAL x, REAL y, REAL width, REAL height, const Graphics *g) const
|
||||||
{
|
{
|
||||||
BOOL result;
|
BOOL result;
|
||||||
SetStatus(DllExports::GdipIsVisibleRegionRect(region, x, y, width, height, g ? g->graphics : NULL, &result));
|
SetStatus(DllExports::GdipIsVisibleRegionRect(region, x, y, width, height, g ? getNat(g) : NULL, &result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue