LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
SvpGraphicsBackend Class Referencefinal

#include <SvpGraphicsBackend.hxx>

Inheritance diagram for SvpGraphicsBackend:
[legend]
Collaboration diagram for SvpGraphicsBackend:
[legend]

Public Member Functions

 SvpGraphicsBackend (CairoCommon &rCairoCommon)
 
void Init () override
 
void freeResources () override
 
OUString getRenderBackendName () const override
 
void setClipRegion (vcl::Region const &rRegion) override
 
void ResetClipRegion () override
 
sal_uInt16 GetBitCount () const override
 
tools::Long GetGraphicsWidth () const override
 
void SetLineColor () override
 
void SetLineColor (Color nColor) override
 
void SetFillColor () override
 
void SetFillColor (Color nColor) override
 
void SetXORMode (bool bSet, bool bInvertOnly) override
 
void SetROPLineColor (SalROPColor nROPColor) override
 
void SetROPFillColor (SalROPColor nROPColor) override
 
void drawPixel (tools::Long nX, tools::Long nY) override
 
void drawPixel (tools::Long nX, tools::Long nY, Color nColor) override
 
void drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2) override
 
void drawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
 
void drawPolyLine (sal_uInt32 nPoints, const Point *pPointArray) override
 
void drawPolygon (sal_uInt32 nPoints, const Point *pPointArray) override
 
void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPointArray) override
 
bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency) override
 
bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
bool drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPointArray, const PolyFlags *pFlagArray) override
 
bool drawPolygonBezier (sal_uInt32 nPoints, const Point *pPointArray, const PolyFlags *pFlagArray) override
 
bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPointArray, const PolyFlags *const *pFlagArray) override
 
void copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate) override
 
void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) override
 
void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
 
std::shared_ptr< SalBitmapgetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
 
Color getPixel (tools::Long nX, tools::Long nY) override
 
void invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags) override
 
void invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags) override
 
bool drawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize) override
 
bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap) override
 
bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 
bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 
bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha) override
 
bool hasFastDrawTransformedBitmap () const override
 
bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency) override
 
bool drawGradient (const tools::PolyPolygon &rPolygon, const Gradient &rGradient) override
 
bool implDrawGradient (basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient) override
 
bool supportsOperation (OutDevSupportType eType) const override
 
void drawBitmapBuffer (const SalTwoRect &rPosAry, const BitmapBuffer *pBuffer, cairo_operator_t eOp)
 
- Public Member Functions inherited from SalGraphicsImpl
void setAntiAlias (bool bNew)
 
bool getAntiAlias () const
 
 SalGraphicsImpl ()
 
virtual ~SalGraphicsImpl ()
 
virtual void Init ()=0
 
virtual void DeInit ()
 
virtual void freeResources ()=0
 
virtual OUString getRenderBackendName () const =0
 
virtual void setClipRegion (const vcl::Region &)=0
 
virtual sal_uInt16 GetBitCount () const =0
 
virtual tools::Long GetGraphicsWidth () const =0
 
virtual void ResetClipRegion ()=0
 
virtual void SetLineColor ()=0
 
virtual void SetLineColor (Color nColor)=0
 
virtual void SetFillColor ()=0
 
virtual void SetFillColor (Color nColor)=0
 
virtual void SetXORMode (bool bSet, bool bInvertOnly)=0
 
virtual void SetROPLineColor (SalROPColor nROPColor)=0
 
virtual void SetROPFillColor (SalROPColor nROPColor)=0
 
virtual void drawPixel (tools::Long nX, tools::Long nY)=0
 
virtual void drawPixel (tools::Long nX, tools::Long nY, Color nColor)=0
 
virtual void drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2)=0
 
virtual void drawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
 
virtual void drawPolyLine (sal_uInt32 nPoints, const Point *pPtAry)=0
 
virtual void drawPolygon (sal_uInt32 nPoints, const Point *pPtAry)=0
 
virtual void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry)=0
 
virtual bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency)=0
 
virtual bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline)=0
 
virtual bool drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
 
virtual bool drawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
 
virtual bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)=0
 
virtual void copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate)=0
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics)=0
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)=0
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap)=0
 
virtual void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor)=0
 
virtual std::shared_ptr< SalBitmapgetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
 
virtual Color getPixel (tools::Long nX, tools::Long nY)=0
 
virtual void invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags)=0
 
virtual void invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags)=0
 
virtual bool drawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize)=0
 
virtual bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap)=0
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap)=0
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap)=0
 
virtual bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha)=0
 
virtual bool hasFastDrawTransformedBitmap () const =0
 
virtual bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency)=0
 
virtual bool drawGradient (const tools::PolyPolygon &rPolygon, const Gradient &rGradient)=0
 
virtual bool implDrawGradient (basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient)=0
 
virtual bool supportsOperation (OutDevSupportType eType) const =0
 

Private Attributes

CairoCommonm_rCairoCommon
 

Detailed Description

Definition at line 30 of file SvpGraphicsBackend.hxx.

Constructor & Destructor Documentation

◆ SvpGraphicsBackend()

SvpGraphicsBackend::SvpGraphicsBackend ( CairoCommon rCairoCommon)

Member Function Documentation

◆ blendAlphaBitmap()

bool SvpGraphicsBackend::blendAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSrcBitmap,
const SalBitmap rMaskBitmap,
const SalBitmap rAlphaBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

◆ blendBitmap()

bool SvpGraphicsBackend::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

◆ copyArea()

void SvpGraphicsBackend::copyArea ( tools::Long  nDestX,
tools::Long  nDestY,
tools::Long  nSrcX,
tools::Long  nSrcY,
tools::Long  nSrcWidth,
tools::Long  nSrcHeight,
bool  bWindowInvalidate 
)
overridevirtual

Implements SalGraphicsImpl.

◆ copyBits()

void SvpGraphicsBackend::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawAlphaBitmap()

bool SvpGraphicsBackend::drawAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawAlphaRect()

bool SvpGraphicsBackend::drawAlphaRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt8  nTransparency 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawBitmap() [1/2]

void SvpGraphicsBackend::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawBitmap() [2/2]

void SvpGraphicsBackend::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rMaskBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawBitmapBuffer()

void SvpGraphicsBackend::drawBitmapBuffer ( const SalTwoRect rPosAry,
const BitmapBuffer pBuffer,
cairo_operator_t  eOp 
)

◆ drawEPS()

bool SvpGraphicsBackend::drawEPS ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
void *  pPtr,
sal_uInt32  nSize 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawGradient()

bool SvpGraphicsBackend::drawGradient ( const tools::PolyPolygon rPolygon,
const Gradient rGradient 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawLine()

void SvpGraphicsBackend::drawLine ( tools::Long  nX1,
tools::Long  nY1,
tools::Long  nX2,
tools::Long  nY2 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawMask()

void SvpGraphicsBackend::drawMask ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
Color  nMaskColor 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPixel() [1/2]

void SvpGraphicsBackend::drawPixel ( tools::Long  nX,
tools::Long  nY 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPixel() [2/2]

void SvpGraphicsBackend::drawPixel ( tools::Long  nX,
tools::Long  nY,
Color  nColor 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolygon()

void SvpGraphicsBackend::drawPolygon ( sal_uInt32  nPoints,
const Point pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolygonBezier()

bool SvpGraphicsBackend::drawPolygonBezier ( sal_uInt32  nPoints,
const Point pPointArray,
const PolyFlags pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyLine() [1/2]

bool SvpGraphicsBackend::drawPolyLine ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon ,
double  fTransparency,
double  fLineWidth,
const std::vector< double > *  pStroke,
basegfx::B2DLineJoin  ,
css::drawing::LineCap  ,
double  fMiterMinimumAngle,
bool  bPixelSnapHairline 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyLine() [2/2]

void SvpGraphicsBackend::drawPolyLine ( sal_uInt32  nPoints,
const Point pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyLineBezier()

bool SvpGraphicsBackend::drawPolyLineBezier ( sal_uInt32  nPoints,
const Point pPointArray,
const PolyFlags pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyPolygon() [1/2]

bool SvpGraphicsBackend::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyPolygon() [2/2]

void SvpGraphicsBackend::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point **  pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawPolyPolygonBezier()

bool SvpGraphicsBackend::drawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point *const *  pPointArray,
const PolyFlags *const *  pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawRect()

void SvpGraphicsBackend::drawRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalGraphicsImpl.

◆ drawTransformedBitmap()

bool SvpGraphicsBackend::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap,
double  fAlpha 
)
overridevirtual

Implements SalGraphicsImpl.

◆ freeResources()

void SvpGraphicsBackend::freeResources ( )
overridevirtual

Implements SalGraphicsImpl.

◆ GetBitCount()

sal_uInt16 SvpGraphicsBackend::GetBitCount ( ) const
overridevirtual

Implements SalGraphicsImpl.

◆ getBitmap()

std::shared_ptr< SalBitmap > SvpGraphicsBackend::getBitmap ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalGraphicsImpl.

◆ GetGraphicsWidth()

tools::Long SvpGraphicsBackend::GetGraphicsWidth ( ) const
overridevirtual

Implements SalGraphicsImpl.

◆ getPixel()

Color SvpGraphicsBackend::getPixel ( tools::Long  nX,
tools::Long  nY 
)
overridevirtual

Implements SalGraphicsImpl.

◆ getRenderBackendName()

OUString SvpGraphicsBackend::getRenderBackendName ( ) const
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 41 of file SvpGraphicsBackend.hxx.

◆ hasFastDrawTransformedBitmap()

bool SvpGraphicsBackend::hasFastDrawTransformedBitmap ( ) const
overridevirtual

Implements SalGraphicsImpl.

◆ implDrawGradient()

bool SvpGraphicsBackend::implDrawGradient ( basegfx::B2DPolyPolygon const &  rPolyPolygon,
SalGradient const &  rGradient 
)
overridevirtual

Implements SalGraphicsImpl.

◆ Init()

void SvpGraphicsBackend::Init ( )
overridevirtual

Implements SalGraphicsImpl.

◆ invert() [1/2]

void SvpGraphicsBackend::invert ( sal_uInt32  nPoints,
const Point pPtAry,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphicsImpl.

◆ invert() [2/2]

void SvpGraphicsBackend::invert ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphicsImpl.

◆ ResetClipRegion()

void SvpGraphicsBackend::ResetClipRegion ( )
overridevirtual

Implements SalGraphicsImpl.

◆ setClipRegion()

void SvpGraphicsBackend::setClipRegion ( vcl::Region const &  rRegion)
overridevirtual

Implements SalGraphicsImpl.

◆ SetFillColor() [1/2]

void SvpGraphicsBackend::SetFillColor ( )
overridevirtual

Implements SalGraphicsImpl.

◆ SetFillColor() [2/2]

void SvpGraphicsBackend::SetFillColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetLineColor() [1/2]

void SvpGraphicsBackend::SetLineColor ( )
overridevirtual

Implements SalGraphicsImpl.

◆ SetLineColor() [2/2]

void SvpGraphicsBackend::SetLineColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetROPFillColor()

void SvpGraphicsBackend::SetROPFillColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetROPLineColor()

void SvpGraphicsBackend::SetROPLineColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetXORMode()

void SvpGraphicsBackend::SetXORMode ( bool  bSet,
bool  bInvertOnly 
)
overridevirtual

Implements SalGraphicsImpl.

◆ supportsOperation()

bool SvpGraphicsBackend::supportsOperation ( OutDevSupportType  eType) const
overridevirtual

Implements SalGraphicsImpl.

Member Data Documentation

◆ m_rCairoCommon

CairoCommon& SvpGraphicsBackend::m_rCairoCommon
private

Definition at line 32 of file SvpGraphicsBackend.hxx.


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