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

Implementation class for SalGraphics. More...

#include <salgdiimpl.hxx>

Inheritance diagram for SalGraphicsImpl:
[legend]

Public Member Functions

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

bool m_bAntiAlias
 

Detailed Description

Implementation class for SalGraphics.

This class allows having an implementation of drawing calls that is separate from SalGraphics, and SalGraphics can forward all such calls to SalGraphicsImpl. For example X11SalGraphics may internally use either Cairo-based X11CairoSalGraphicsImpl or Skia-based SkiaSalGraphicsImpl, and the latter may be used also by other SalGraphics implementations. All the functions here should be implementations of the relevant SalGraphics functions.

Definition at line 50 of file salgdiimpl.hxx.

Constructor & Destructor Documentation

◆ SalGraphicsImpl()

SalGraphicsImpl::SalGraphicsImpl ( )
inline

Definition at line 65 of file salgdiimpl.hxx.

◆ ~SalGraphicsImpl()

SalGraphicsImpl::~SalGraphicsImpl ( )
virtual

Definition at line 22 of file salgdiimpl.cxx.

Member Function Documentation

◆ blendAlphaBitmap()

virtual bool SalGraphicsImpl::blendAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSrcBitmap,
const SalBitmap rMaskBitmap,
const SalBitmap rAlphaBitmap 
)
pure virtual

◆ blendBitmap()

virtual bool SalGraphicsImpl::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
pure virtual

◆ copyArea()

virtual void SalGraphicsImpl::copyArea ( tools::Long  nDestX,
tools::Long  nDestY,
tools::Long  nSrcX,
tools::Long  nSrcY,
tools::Long  nSrcWidth,
tools::Long  nSrcHeight,
bool  bWindowInvalidate 
)
pure virtual

◆ copyBits()

virtual void SalGraphicsImpl::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
pure virtual

◆ DeInit()

virtual void SalGraphicsImpl::DeInit ( )
inlinevirtual

Reimplemented in SkiaSalGraphicsImpl.

Definition at line 77 of file salgdiimpl.hxx.

◆ drawAlphaBitmap()

virtual bool SalGraphicsImpl::drawAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap 
)
pure virtual

◆ drawAlphaRect()

virtual bool SalGraphicsImpl::drawAlphaRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt8  nTransparency 
)
pure virtual

◆ drawBitmap() [1/2]

virtual void SalGraphicsImpl::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
pure virtual

◆ drawBitmap() [2/2]

virtual void SalGraphicsImpl::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rMaskBitmap 
)
pure virtual

◆ drawEPS()

virtual bool SalGraphicsImpl::drawEPS ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
void *  pPtr,
sal_uInt32  nSize 
)
pure virtual

◆ drawGradient()

virtual bool SalGraphicsImpl::drawGradient ( const tools::PolyPolygon rPolygon,
const Gradient rGradient 
)
pure virtual

◆ drawLine()

virtual void SalGraphicsImpl::drawLine ( tools::Long  nX1,
tools::Long  nY1,
tools::Long  nX2,
tools::Long  nY2 
)
pure virtual

◆ drawMask()

virtual void SalGraphicsImpl::drawMask ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
Color  nMaskColor 
)
pure virtual

◆ drawPixel() [1/2]

virtual void SalGraphicsImpl::drawPixel ( tools::Long  nX,
tools::Long  nY 
)
pure virtual

◆ drawPixel() [2/2]

virtual void SalGraphicsImpl::drawPixel ( tools::Long  nX,
tools::Long  nY,
Color  nColor 
)
pure virtual

◆ drawPolygon()

virtual void SalGraphicsImpl::drawPolygon ( sal_uInt32  nPoints,
const Point pPtAry 
)
pure virtual

◆ drawPolygonBezier()

virtual bool SalGraphicsImpl::drawPolygonBezier ( sal_uInt32  nPoints,
const Point pPtAry,
const PolyFlags pFlgAry 
)
pure virtual

◆ drawPolyLine() [1/2]

virtual bool SalGraphicsImpl::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 
)
pure virtual

◆ drawPolyLine() [2/2]

virtual void SalGraphicsImpl::drawPolyLine ( sal_uInt32  nPoints,
const Point pPtAry 
)
pure virtual

◆ drawPolyLineBezier()

virtual bool SalGraphicsImpl::drawPolyLineBezier ( sal_uInt32  nPoints,
const Point pPtAry,
const PolyFlags pFlgAry 
)
pure virtual

◆ drawPolyPolygon() [1/2]

virtual bool SalGraphicsImpl::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency 
)
pure virtual

◆ drawPolyPolygon() [2/2]

virtual void SalGraphicsImpl::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point **  pPtAry 
)
pure virtual

◆ drawPolyPolygonBezier()

virtual bool SalGraphicsImpl::drawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point *const *  pPtAry,
const PolyFlags *const *  pFlgAry 
)
pure virtual

◆ drawRect()

virtual void SalGraphicsImpl::drawRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
pure virtual

◆ drawTransformedBitmap()

virtual bool SalGraphicsImpl::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap,
double  fAlpha 
)
pure virtual

◆ freeResources()

virtual void SalGraphicsImpl::freeResources ( )
pure virtual

◆ getAntiAlias()

bool SalGraphicsImpl::getAntiAlias ( ) const
inline

Definition at line 60 of file salgdiimpl.hxx.

◆ GetBitCount()

virtual sal_uInt16 SalGraphicsImpl::GetBitCount ( ) const
pure virtual

◆ getBitmap()

virtual std::shared_ptr< SalBitmap > SalGraphicsImpl::getBitmap ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
pure virtual

◆ GetGraphicsWidth()

virtual tools::Long SalGraphicsImpl::GetGraphicsWidth ( ) const
pure virtual

◆ getPixel()

virtual Color SalGraphicsImpl::getPixel ( tools::Long  nX,
tools::Long  nY 
)
pure virtual

◆ getRenderBackendName()

virtual OUString SalGraphicsImpl::getRenderBackendName ( ) const
pure virtual

◆ hasFastDrawTransformedBitmap()

virtual bool SalGraphicsImpl::hasFastDrawTransformedBitmap ( ) const
pure virtual

◆ implDrawGradient()

virtual bool SalGraphicsImpl::implDrawGradient ( basegfx::B2DPolyPolygon const &  rPolyPolygon,
SalGradient const &  rGradient 
)
pure virtual

◆ Init()

virtual void SalGraphicsImpl::Init ( )
pure virtual

◆ invert() [1/2]

virtual void SalGraphicsImpl::invert ( sal_uInt32  nPoints,
const Point pPtAry,
SalInvert  nFlags 
)
pure virtual

◆ invert() [2/2]

virtual void SalGraphicsImpl::invert ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
SalInvert  nFlags 
)
pure virtual

◆ ResetClipRegion()

virtual void SalGraphicsImpl::ResetClipRegion ( )
pure virtual

◆ setAntiAlias()

void SalGraphicsImpl::setAntiAlias ( bool  bNew)
inline

Definition at line 55 of file salgdiimpl.hxx.

◆ setClipRegion()

virtual void SalGraphicsImpl::setClipRegion ( const vcl::Region )
pure virtual

◆ SetFillColor() [1/2]

virtual void SalGraphicsImpl::SetFillColor ( )
pure virtual

◆ SetFillColor() [2/2]

virtual void SalGraphicsImpl::SetFillColor ( Color  nColor)
pure virtual

◆ SetLineColor() [1/2]

virtual void SalGraphicsImpl::SetLineColor ( )
pure virtual

◆ SetLineColor() [2/2]

virtual void SalGraphicsImpl::SetLineColor ( Color  nColor)
pure virtual

◆ SetROPFillColor()

virtual void SalGraphicsImpl::SetROPFillColor ( SalROPColor  nROPColor)
pure virtual

◆ SetROPLineColor()

virtual void SalGraphicsImpl::SetROPLineColor ( SalROPColor  nROPColor)
pure virtual

◆ SetXORMode()

virtual void SalGraphicsImpl::SetXORMode ( bool  bSet,
bool  bInvertOnly 
)
pure virtual

◆ supportsOperation()

virtual bool SalGraphicsImpl::supportsOperation ( OutDevSupportType  eType) const
pure virtual

Member Data Documentation

◆ m_bAntiAlias

bool SalGraphicsImpl::m_bAntiAlias
private

Definition at line 52 of file salgdiimpl.hxx.


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