mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
[SDK][INCLUDE] Formatting gdiplus headers (#2190)
Just code formatting. CORE-16585 $ clang-format -style=file -i sdk/include/psdk/gdiplus[a-z]*
This commit is contained in:
parent
8faf38ed22
commit
e7814f19fb
23 changed files with 6651 additions and 5056 deletions
|
@ -21,159 +21,173 @@
|
|||
|
||||
class Matrix : public GdiplusBase
|
||||
{
|
||||
friend class Pen;
|
||||
friend class Region;
|
||||
friend class Pen;
|
||||
friend class Region;
|
||||
|
||||
public:
|
||||
Matrix(const RectF &rect, const PointF *dstplg)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix3(&rect, dstplg, &matrix);
|
||||
}
|
||||
public:
|
||||
Matrix(const RectF &rect, const PointF *dstplg)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix3(&rect, dstplg, &matrix);
|
||||
}
|
||||
|
||||
Matrix(const Rect &rect, const Point *dstplg)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix3I(&rect, dstplg, &matrix);
|
||||
}
|
||||
Matrix(const Rect &rect, const Point *dstplg)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix3I(&rect, dstplg, &matrix);
|
||||
}
|
||||
|
||||
Matrix(VOID)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix(&matrix);
|
||||
}
|
||||
Matrix(VOID)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix(&matrix);
|
||||
}
|
||||
|
||||
Matrix(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, &matrix);
|
||||
}
|
||||
Matrix(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy)
|
||||
{
|
||||
status = DllExports::GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, &matrix);
|
||||
}
|
||||
|
||||
Matrix *Clone(VOID)
|
||||
{
|
||||
Matrix *cloneMatrix = new Matrix(); // FIXME: Matrix::matrix already initialized --> potential memory leak
|
||||
cloneMatrix->status = DllExports::GdipCloneMatrix(matrix, cloneMatrix ? &cloneMatrix->matrix : NULL);
|
||||
return cloneMatrix;
|
||||
}
|
||||
Matrix *Clone(VOID)
|
||||
{
|
||||
Matrix *cloneMatrix = new Matrix(); // FIXME: Matrix::matrix already initialized --> potential memory leak
|
||||
cloneMatrix->status = DllExports::GdipCloneMatrix(matrix, cloneMatrix ? &cloneMatrix->matrix : NULL);
|
||||
return cloneMatrix;
|
||||
}
|
||||
|
||||
~Matrix(VOID)
|
||||
{
|
||||
DllExports::GdipDeleteMatrix(matrix);
|
||||
}
|
||||
~Matrix(VOID)
|
||||
{
|
||||
DllExports::GdipDeleteMatrix(matrix);
|
||||
}
|
||||
|
||||
BOOL Equals(const Matrix* matrix)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixEqual(this->matrix, matrix ? matrix->matrix : NULL, &result));
|
||||
return result;
|
||||
}
|
||||
BOOL
|
||||
Equals(const Matrix *matrix)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixEqual(this->matrix, matrix ? matrix->matrix : NULL, &result));
|
||||
return result;
|
||||
}
|
||||
|
||||
Status GetElements(REAL *m) const
|
||||
{
|
||||
return SetStatus(DllExports::GdipGetMatrixElements(matrix, m));
|
||||
}
|
||||
Status
|
||||
GetElements(REAL *m) const
|
||||
{
|
||||
return SetStatus(DllExports::GdipGetMatrixElements(matrix, m));
|
||||
}
|
||||
|
||||
Status GetLastStatus(VOID)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
Status GetLastStatus(VOID)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
Status Invert(VOID)
|
||||
{
|
||||
return SetStatus(DllExports::GdipInvertMatrix(matrix));
|
||||
}
|
||||
Status Invert(VOID)
|
||||
{
|
||||
return SetStatus(DllExports::GdipInvertMatrix(matrix));
|
||||
}
|
||||
|
||||
BOOL IsIdentity(VOID)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixIdentity(matrix, &result));
|
||||
return result;
|
||||
}
|
||||
BOOL IsIdentity(VOID)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixIdentity(matrix, &result));
|
||||
return result;
|
||||
}
|
||||
|
||||
BOOL IsInvertible(VOID)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixInvertible(matrix, &result));
|
||||
return result;
|
||||
}
|
||||
BOOL IsInvertible(VOID)
|
||||
{
|
||||
BOOL result;
|
||||
SetStatus(DllExports::GdipIsMatrixInvertible(matrix, &result));
|
||||
return result;
|
||||
}
|
||||
|
||||
Status Multiply(const Matrix *matrix, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipMultiplyMatrix(this->matrix, matrix ? matrix->matrix : NULL, order));
|
||||
}
|
||||
Status
|
||||
Multiply(const Matrix *matrix, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipMultiplyMatrix(this->matrix, matrix ? matrix->matrix : NULL, order));
|
||||
}
|
||||
|
||||
REAL OffsetX(VOID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
REAL OffsetX(VOID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
REAL OffsetY(VOID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
REAL OffsetY(VOID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Status Reset(VOID)
|
||||
{
|
||||
return NotImplemented;
|
||||
}
|
||||
Status Reset(VOID)
|
||||
{
|
||||
return NotImplemented;
|
||||
}
|
||||
|
||||
Status Rotate(REAL angle, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipRotateMatrix(matrix, angle, order));
|
||||
}
|
||||
Status
|
||||
Rotate(REAL angle, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipRotateMatrix(matrix, angle, order));
|
||||
}
|
||||
|
||||
Status RotateAt(REAL angle, const PointF ¢er, MatrixOrder order)
|
||||
{
|
||||
return NotImplemented;
|
||||
}
|
||||
Status
|
||||
RotateAt(REAL angle, const PointF ¢er, MatrixOrder order)
|
||||
{
|
||||
return NotImplemented;
|
||||
}
|
||||
|
||||
Status Scale(REAL scaleX, REAL scaleY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipScaleMatrix(matrix, scaleX, scaleY, order));
|
||||
}
|
||||
Status
|
||||
Scale(REAL scaleX, REAL scaleY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipScaleMatrix(matrix, scaleX, scaleY, order));
|
||||
}
|
||||
|
||||
Status SetElements(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy)
|
||||
{
|
||||
return SetStatus(DllExports::GdipSetMatrixElements(matrix, m11, m12, m21, m22, dx, dy));
|
||||
}
|
||||
Status
|
||||
SetElements(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy)
|
||||
{
|
||||
return SetStatus(DllExports::GdipSetMatrixElements(matrix, m11, m12, m21, m22, dx, dy));
|
||||
}
|
||||
|
||||
Status Shear(REAL shearX, REAL shearY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipShearMatrix(matrix, shearX, shearY, order));
|
||||
}
|
||||
Status
|
||||
Shear(REAL shearX, REAL shearY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipShearMatrix(matrix, shearX, shearY, order));
|
||||
}
|
||||
|
||||
Status TransformPoints(Point *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTransformMatrixPointsI(matrix, pts, count));
|
||||
}
|
||||
Status
|
||||
TransformPoints(Point *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTransformMatrixPointsI(matrix, pts, count));
|
||||
}
|
||||
|
||||
Status TransformPoints(PointF *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTransformMatrixPoints(matrix, pts, count));
|
||||
}
|
||||
Status
|
||||
TransformPoints(PointF *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTransformMatrixPoints(matrix, pts, count));
|
||||
}
|
||||
|
||||
Status TransformVectors(Point *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipVectorTransformMatrixPointsI(matrix, pts, count));
|
||||
}
|
||||
Status
|
||||
TransformVectors(Point *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipVectorTransformMatrixPointsI(matrix, pts, count));
|
||||
}
|
||||
|
||||
Status TransformVectors(PointF *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipVectorTransformMatrixPoints(matrix, pts, count));
|
||||
}
|
||||
Status
|
||||
TransformVectors(PointF *pts, INT count)
|
||||
{
|
||||
return SetStatus(DllExports::GdipVectorTransformMatrixPoints(matrix, pts, count));
|
||||
}
|
||||
|
||||
Status Translate(REAL offsetX, REAL offsetY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTranslateMatrix(matrix, offsetX, offsetY, order));
|
||||
}
|
||||
Status
|
||||
Translate(REAL offsetX, REAL offsetY, MatrixOrder order)
|
||||
{
|
||||
return SetStatus(DllExports::GdipTranslateMatrix(matrix, offsetX, offsetY, order));
|
||||
}
|
||||
|
||||
private:
|
||||
mutable Status status;
|
||||
GpMatrix *matrix;
|
||||
private:
|
||||
mutable Status status;
|
||||
GpMatrix *matrix;
|
||||
|
||||
Status SetStatus(Status status) const
|
||||
{
|
||||
if (status == Ok)
|
||||
return status;
|
||||
this->status = status;
|
||||
return status;
|
||||
}
|
||||
Status
|
||||
SetStatus(Status status) const
|
||||
{
|
||||
if (status == Ok)
|
||||
return status;
|
||||
this->status = status;
|
||||
return status;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _GDIPLUSMATRIX_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue