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

Common subclass for output device rendering tests. More...

#include <outputdevice.hxx>

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

Public Member Functions

 OutputDeviceTestCommon ()
 
OUString getRenderBackendName () const
 
void initialSetup (long nWidth, long nHeight, Color aColor, bool bEnableAA=false, bool bAlphaVirtualDevice=false)
 

Static Public Member Functions

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 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 void createDiamondPoints (tools::Rectangle rRect, int nOffset, Point &rPoint1, Point &rPoint2, Point &rPoint3, Point &rPoint4)
 
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)
 

Protected Attributes

ScopedVclPtr< VirtualDevicempVirtualDevice
 
tools::Rectangle maVDRectangle
 

Static Protected Attributes

static const Color constBackgroundColor
 
static const Color constLineColor
 
static const Color constFillColor
 

Detailed Description

Common subclass for output device rendering tests.

Definition at line 32 of file outputdevice.hxx.

Constructor & Destructor Documentation

vcl::test::OutputDeviceTestCommon::OutputDeviceTestCommon ( )

Member Function Documentation

static tools::Rectangle vcl::test::OutputDeviceTestCommon::alignToCenter ( tools::Rectangle  aRect1,
tools::Rectangle  aRect2 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkAALines ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkBezier ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkChecker ( Bitmap rBitmap,
sal_Int32  nStartX,
sal_Int32  nEndX,
sal_Int32  nStartY,
sal_Int32  nEndY,
std::vector< Color > const &  rExpected 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkDiamond ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilled ( Bitmap rBitmap,
tools::Rectangle  aRectangle,
Color  aExpectedColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilledRectangle ( Bitmap rBitmap,
bool  useLineColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertN50Rectangle ( Bitmap aBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertRectangle ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertTrackFrameRectangle ( Bitmap aBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLines ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap,
int  aLayerNumber,
Color  aExpectedColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangleAA ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangles ( Bitmap rBitmap,
std::vector< Color > &  aExpectedColors 
)
static
static void vcl::test::OutputDeviceTestCommon::createDiamondPoints ( tools::Rectangle  rRect,
int  nOffset,
Point &  rPoint1,
Point &  rPoint2,
Point &  rPoint3,
Point &  rPoint4 
)
static
static void vcl::test::OutputDeviceTestCommon::createHorizontalVerticalDiagonalLinePoints ( tools::Rectangle  rRect,
Point &  rHorizontalLinePoint1,
Point &  rHorizontalLinePoint2,
Point &  rVerticalLinePoint1,
Point &  rVerticalLinePoint2,
Point &  rDiagonalLinePoint1,
Point &  rDiagonalLinePoint2 
)
static
OUString vcl::test::OutputDeviceTestCommon::getRenderBackendName ( ) const
void vcl::test::OutputDeviceTestCommon::initialSetup ( long  nWidth,
long  nHeight,
Color  aColor,
bool  bEnableAA = false,
bool  bAlphaVirtualDevice = false 
)

Member Data Documentation

const Color vcl::test::OutputDeviceTestCommon::constBackgroundColor
staticprotected

Definition at line 39 of file outputdevice.hxx.

const Color vcl::test::OutputDeviceTestCommon::constFillColor
staticprotected

Definition at line 41 of file outputdevice.hxx.

const Color vcl::test::OutputDeviceTestCommon::constLineColor
staticprotected

Definition at line 40 of file outputdevice.hxx.

tools::Rectangle vcl::test::OutputDeviceTestCommon::maVDRectangle
protected

Definition at line 37 of file outputdevice.hxx.

ScopedVclPtr<VirtualDevice> vcl::test::OutputDeviceTestCommon::mpVirtualDevice
protected

Definition at line 36 of file outputdevice.hxx.


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