LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
vcl::test::OutputDeviceTestLine Class Reference

#include <outputdevice.hxx>

Inheritance diagram for vcl::test::OutputDeviceTestLine:
[legend]
Collaboration diagram for vcl::test::OutputDeviceTestLine:
[legend]

Public Member Functions

 OutputDeviceTestLine ()=default
 
Bitmap setupRectangle (bool bEnableAA)
 
Bitmap setupRectangleOnSize1028 ()
 
Bitmap setupRectangleOnSize4096 ()
 
Bitmap setupDiamond ()
 
Bitmap setupLines ()
 
Bitmap setupAALines ()
 
Bitmap setupDashedLine ()
 
Bitmap setupLineCapRound ()
 
Bitmap setupLineCapSquare ()
 
Bitmap setupLineCapButt ()
 
Bitmap setupLineJoinBevel ()
 
Bitmap setupLineJoinRound ()
 
Bitmap setupLineJoinMiter ()
 
Bitmap setupLineJoinNone ()
 
- Public Member Functions inherited from vcl::test::OutputDeviceTestCommon
 OutputDeviceTestCommon ()
 
OUString getRenderBackendName () const
 
void initialSetup (tools::Long nWidth, tools::Long nHeight, Color aColor, bool bEnableAA=false, bool bAlphaVirtualDevice=false)
 

Static Public Member Functions

static TestResult checkDashedLine (Bitmap &rBitmap)
 
- Static Public Member Functions inherited from vcl::test::OutputDeviceTestCommon
static TestResult checkRectangle (Bitmap &rBitmap)
 
static TestResult checkRectangleAA (Bitmap &rBitmap)
 
static TestResult checkFilledRectangle (Bitmap &rBitmap, bool useLineColor)
 
static TestResult checkLines (Bitmap &rBitmap)
 
static TestResult checkAALines (Bitmap &rBitmap)
 
static TestResult checkDiamond (Bitmap &rBitmap)
 
static TestResult checkInvertRectangle (Bitmap &rBitmap)
 
static TestResult checkInvertN50Rectangle (Bitmap &aBitmap)
 
static TestResult checkInvertTrackFrameRectangle (Bitmap &aBitmap)
 
static TestResult checkRectangles (Bitmap &rBitmap, std::vector< Color > &aExpectedColors)
 
static TestResult checkRectangle (Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
 
static TestResult checkRectangles (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkFilled (Bitmap &rBitmap, tools::Rectangle aRectangle, Color aExpectedColor)
 
static TestResult checkChecker (Bitmap &rBitmap, sal_Int32 nStartX, sal_Int32 nEndX, sal_Int32 nStartY, sal_Int32 nEndY, std::vector< Color > const &rExpected)
 
static TestResult checkLinearGradient (Bitmap &bitmap)
 
static TestResult checkLinearGradientAngled (Bitmap &bitmap)
 
static TestResult checkLinearGradientBorder (Bitmap &bitmap)
 
static TestResult checkLinearGradientIntensity (Bitmap &bitmap)
 
static TestResult checkLinearGradientSteps (Bitmap &bitmap)
 
static TestResult checkAxialGradient (Bitmap &bitmap)
 
static TestResult checkRadialGradient (Bitmap &bitmap)
 
static TestResult checkRadialGradientOfs (Bitmap &bitmap)
 
static void createDiamondPoints (tools::Rectangle rRect, int nOffset, Point &rPoint1, Point &rPoint2, Point &rPoint3, Point &rPoint4)
 
static tools::Polygon createDropShapePolygon ()
 
static basegfx::B2DPolygon createHalfEllipsePolygon ()
 
static tools::Polygon createClosedBezierLoop (const tools::Rectangle &rRect)
 
static basegfx::B2DPolygon createOpenPolygon (const tools::Rectangle &rRect, int nOffset=4)
 
static basegfx::B2DPolygon createOpenBezier ()
 
static void createHorizontalVerticalDiagonalLinePoints (tools::Rectangle rRect, Point &rHorizontalLinePoint1, Point &rHorizontalLinePoint2, Point &rVerticalLinePoint1, Point &rVerticalLinePoint2, Point &rDiagonalLinePoint1, Point &rDiagonalLinePoint2)
 
static tools::Rectangle alignToCenter (tools::Rectangle aRect1, tools::Rectangle aRect2)
 
static TestResult checkBezier (Bitmap &rBitmap)
 
static TestResult checkLineCapRound (Bitmap &rBitmap)
 
static TestResult checkLineCapSquare (Bitmap &rBitmap)
 
static TestResult checkLineCapButt (Bitmap &rBitmap)
 
static TestResult checkLineJoinBevel (Bitmap &rBitmap)
 
static TestResult checkLineJoinRound (Bitmap &rBitmap)
 
static TestResult checkLineJoinMiter (Bitmap &rBitmap)
 
static TestResult checkLineJoinNone (Bitmap &rBitmap)
 
static TestResult checkDropShape (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkHalfEllipse (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkClosedBezier (Bitmap &rBitmap)
 
static TestResult checkFilledAsymmetricalDropShape (Bitmap &rBitmap)
 
static TestResult checkTextLocation (Bitmap &rBitmap)
 
static TestResult checkEvenOddRuleInIntersectingRecs (Bitmap &rBitmap)
 
static TestResult checkIntersectingRecs (Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
 
static TestResult checkOpenPolygon (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkOpenBezier (Bitmap &rBitmap)
 

Private Member Functions

Bitmap setupLineCap (css::drawing::LineCap lineCap)
 
Bitmap setupLineJoin (basegfx::B2DLineJoin lineJoin)
 

Additional Inherited Members

- Protected Attributes inherited from vcl::test::OutputDeviceTestCommon
ScopedVclPtr< VirtualDevicempVirtualDevice
 
tools::Rectangle maVDRectangle
 
- Static Protected Attributes inherited from vcl::test::OutputDeviceTestCommon
static const Color constBackgroundColor
 
static const Color constLineColor
 
static const Color constFillColor
 

Detailed Description

Definition at line 157 of file outputdevice.hxx.

Constructor & Destructor Documentation

◆ OutputDeviceTestLine()

vcl::test::OutputDeviceTestLine::OutputDeviceTestLine ( )
default

Member Function Documentation

◆ checkDashedLine()

static TestResult vcl::test::OutputDeviceTestLine::checkDashedLine ( Bitmap rBitmap)
static

◆ setupAALines()

Bitmap vcl::test::OutputDeviceTestLine::setupAALines ( )

◆ setupDashedLine()

Bitmap vcl::test::OutputDeviceTestLine::setupDashedLine ( )

◆ setupDiamond()

Bitmap vcl::test::OutputDeviceTestLine::setupDiamond ( )

◆ setupLineCap()

Bitmap vcl::test::OutputDeviceTestLine::setupLineCap ( css::drawing::LineCap  lineCap)
private

◆ setupLineCapButt()

Bitmap vcl::test::OutputDeviceTestLine::setupLineCapButt ( )
inline

Definition at line 174 of file outputdevice.hxx.

◆ setupLineCapRound()

Bitmap vcl::test::OutputDeviceTestLine::setupLineCapRound ( )
inline

Definition at line 172 of file outputdevice.hxx.

◆ setupLineCapSquare()

Bitmap vcl::test::OutputDeviceTestLine::setupLineCapSquare ( )
inline

Definition at line 173 of file outputdevice.hxx.

◆ setupLineJoin()

Bitmap vcl::test::OutputDeviceTestLine::setupLineJoin ( basegfx::B2DLineJoin  lineJoin)
private

◆ setupLineJoinBevel()

Bitmap vcl::test::OutputDeviceTestLine::setupLineJoinBevel ( )
inline

Definition at line 176 of file outputdevice.hxx.

References basegfx::Bevel.

◆ setupLineJoinMiter()

Bitmap vcl::test::OutputDeviceTestLine::setupLineJoinMiter ( )
inline

Definition at line 178 of file outputdevice.hxx.

References basegfx::Miter.

◆ setupLineJoinNone()

Bitmap vcl::test::OutputDeviceTestLine::setupLineJoinNone ( )
inline

Definition at line 179 of file outputdevice.hxx.

References basegfx::NONE.

◆ setupLineJoinRound()

Bitmap vcl::test::OutputDeviceTestLine::setupLineJoinRound ( )
inline

Definition at line 177 of file outputdevice.hxx.

References basegfx::Round.

◆ setupLines()

Bitmap vcl::test::OutputDeviceTestLine::setupLines ( )

◆ setupRectangle()

Bitmap vcl::test::OutputDeviceTestLine::setupRectangle ( bool  bEnableAA)

◆ setupRectangleOnSize1028()

Bitmap vcl::test::OutputDeviceTestLine::setupRectangleOnSize1028 ( )

◆ setupRectangleOnSize4096()

Bitmap vcl::test::OutputDeviceTestLine::setupRectangleOnSize4096 ( )

The documentation for this class was generated from the following file: