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 ()
 
void initialSetup (long nWidth, long nHeight, Color aColor, bool bEnableAA=false)
 

Static Public Member Functions

static TestResult checkRectangle (Bitmap &rBitmap)
 
static TestResult checkRectangleAA (Bitmap &rBitmap)
 
static TestResult checkFilledRectangle (Bitmap &rBitmap)
 
static TestResult checkLines (Bitmap &rBitmap)
 
static TestResult checkAALines (Bitmap &rBitmap)
 
static TestResult checkDiamond (Bitmap &rBitmap)
 
static TestResult checkRectangles (Bitmap &rBitmap, std::vector< Color > &aExpectedColors)
 
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)
 

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 33 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::checkDiamond ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilledRectangle ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLines ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap)
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
void vcl::test::OutputDeviceTestCommon::initialSetup ( long  nWidth,
long  nHeight,
Color  aColor,
bool  bEnableAA = false 
)

Member Data Documentation

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

Definition at line 40 of file outputdevice.hxx.

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

Definition at line 42 of file outputdevice.hxx.

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

Definition at line 41 of file outputdevice.hxx.

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

Definition at line 38 of file outputdevice.hxx.

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

Definition at line 37 of file outputdevice.hxx.


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