LibreOffice Module vcl (master) 1
include/vcl/test/GraphicsRenderTests.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 */
10#pragma once
11
12#include <utility>
13#include <vcl/bitmap.hxx>
14#include <vcl/dllapi.h>
16
17#include <vector>
18
20{
21 OUString m_aTestName;
22 //For storing the result of the test.
23 OUString m_aTestStatus;
24 //For storing the resultant bitmap correspondingly to the test.
26
27public:
28 VclTestResult(OUString atestName, OUString atestStatus, Bitmap atestBitmap)
29 : m_aTestName(std::move(atestName))
30 , m_aTestStatus(std::move(atestStatus))
31 , m_aResultantBitmap(atestBitmap)
32 {
33 }
34 const OUString& getTestName() const { return m_aTestName; }
35 OUString getStatus(bool bLocalize = false);
36 const Bitmap& getBitmap() const { return m_aResultantBitmap; }
37};
38
40{
42
43 //For storing the test's info
44 std::vector<VclTestResult> m_aTestResult;
45 //For storing the current graphics Backend in use.
47 //Location where the results should be stored.
49
155 static OUString returnTestStatus(vcl::test::TestResult const result);
157 void appendTestResult(OUString aTestName, OUString aTestStatus, Bitmap aTestBitmap = Bitmap());
158
159public:
160 std::vector<VclTestResult>& getTestResults();
161 OUString getResultString(bool bLocalize = false);
162 void run(bool storeResultBitmap = false);
163
165 : m_aStoreResultantBitmap(false)
166 {
167 }
168};
void testDrawInvertWithRectangle()
void testDrawFilledRectWithPolyPolygon()
void testHalfEllipseWithPolygon()
void testDrawOpenPolygonWithPolyPolygon()
void testDrawFilledRectWithPolygon()
void testDrawOpenPolygonWithPolyLine()
static OUString returnTestStatus(vcl::test::TestResult const result)
void testRadialGradientOfs()
void testFilledAsymmetricalDropShape()
void testComplexDrawTransformedBitmap24bpp()
void testDrawRectAAWithPolygon()
void testDrawFilledRectWithPolyPolygon2D()
void testDrawDiamondWithLine()
void testDrawOpenPolygonWithPolyLineB2D()
void testDrawBitmapExWithAlpha32bpp()
void testDrawRectangleOnSize1028WithPixel()
void appendTestResult(OUString aTestName, OUString aTestStatus, Bitmap aTestBitmap=Bitmap())
void testDrawOpenBezierWithPolyLine()
void testHalfEllipseAAWithPolyLine()
void testDrawRectWithPixel()
void testLinearGradientAngled()
void testDrawDropShapeWithPolyline()
std::vector< VclTestResult > & getTestResults()
void testClosedBezierWithPolygon()
void testDrawRectAAWithRectangle()
void testDrawRectAAWithPolyLineB2D()
void testDrawOpenPolygonWithPolyPolygonB2D()
std::vector< VclTestResult > m_aTestResult
void testDrawRectangleOnSize1028WithPolygon()
void testDrawRectAAWithPolyLine()
void testDrawRectangleOnSize1028WithPolyLineB2D()
void testClipB2DPolyPolygon()
void testDrawRectangleOnSize1028WithPolyPolygon()
void testDrawRectangleOnSize4096WithRect()
void testDrawDiamondWithPolyline()
void testDrawDropShapeAAWithPolygon()
void testEvenOddRuleInIntersectingRectsWithPolyPolygonB2D()
void testDrawRectWithPolyLine()
void testDrawRectAAWithPolyPolygon()
void testDrawRectangleOnSize4096WithPixel()
void testLinearGradientSteps()
void testLinearGradientIntensity()
void testDrawOpenBezierWithPolyLineB2D()
OUString getResultString(bool bLocalize=false)
void testDrawTransformedBitmap8bppGreyScale()
void testDrawDropShapeWithPolygon()
void testDrawRectAAWithLine()
void testDrawRectangleOnSize4096WithPolygonPolygonB2D()
void testDrawOpenPolygonWithPolygon()
void testDrawTransformedBitmap24bpp()
void testDrawRectangleOnSize4096WithPolyLineB2D()
void run(bool storeResultBitmap=false)
void testHalfEllipseAAWithPolygon()
void testDrawBitmap8bppGreyScale()
void testLinearGradientBorder()
void testDrawDropShapeAAWithPolyline()
void testDrawRectangleOnSize1028WithPolyLine()
void testDrawRectangleOnSize4096WithPolygon()
void testDrawRectAAWithPixel()
void testHalfEllipseWithPolyLine()
void testDrawTransformedBitmap32bpp()
void testEvenOddRuleInIntersectingRectsWithPolyPolygon()
void testDrawRectangleOnSize1028WithPolyPolygonB2D()
void testDrawFilledRectWithRectangle()
void testDrawRectangleOnSize1028WithRect()
void testDrawRectAAWithPolyPolygonB2D()
void testDrawOutDevScaledClipped()
void testDrawDiamondWithPolylineB2D()
void testDrawRectangleOnSize4096WithPolyLine()
void testDrawRectWithPolyPolygon()
void testDrawInvertN50WithRectangle()
void testDrawRectangleOnSize1028WithLine()
void testClosedBezierWithPolyline()
void testDrawBezierWithPolylineB2D()
void testDrawBezierAAWithPolylineB2D()
void testDrawRectWithPolygon()
void testDrawRectWithPolyPolygonB2D()
void testDrawDiamondWithPolygon()
void testHalfEllipseWithPolyLineB2D()
void testDrawInvertTrackFrameWithRectangle()
void testDrawBitmapExWithAlpha24bpp()
void testDrawRectangleOnSize4096WithPolyPolygon()
void testHalfEllipseAAWithPolyLineB2D()
void testDrawRectWithRectangle()
void testDrawRectWithPolyLineB2D()
void testDrawRectangleOnSize4096WithLine()
OUString getStatus(bool bLocalize=false)
const OUString & getTestName() const
VclTestResult(OUString atestName, OUString atestStatus, Bitmap atestBitmap)
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40