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 bool 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 Xlib-based X11SalGraphicsImpl 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 ( )
inline

Definition at line 65 of file salgdiimpl.hxx.

References false.

SalGraphicsImpl::~SalGraphicsImpl ( )
virtual

Definition at line 22 of file salgdiimpl.cxx.

Member Function Documentation

virtual bool SalGraphicsImpl::blendAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSrcBitmap,
const SalBitmap rMaskBitmap,
const SalBitmap rAlphaBitmap 
)
pure virtual
virtual bool SalGraphicsImpl::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
pure virtual
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
virtual void SalGraphicsImpl::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
pure virtual
virtual void SalGraphicsImpl::DeInit ( )
inlinevirtual

Reimplemented in SkiaSalGraphicsImpl.

Definition at line 77 of file salgdiimpl.hxx.

virtual bool SalGraphicsImpl::drawAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap 
)
pure virtual
virtual bool SalGraphicsImpl::drawAlphaRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt8  nTransparency 
)
pure virtual
virtual void SalGraphicsImpl::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
pure virtual
virtual void SalGraphicsImpl::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rMaskBitmap 
)
pure virtual
virtual bool SalGraphicsImpl::drawEPS ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
void pPtr,
sal_uInt32  nSize 
)
pure virtual
virtual bool SalGraphicsImpl::drawGradient ( const tools::PolyPolygon rPolygon,
const Gradient rGradient 
)
pure virtual
virtual void SalGraphicsImpl::drawLine ( tools::Long  nX1,
tools::Long  nY1,
tools::Long  nX2,
tools::Long  nY2 
)
pure virtual
virtual void SalGraphicsImpl::drawMask ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
Color  nMaskColor 
)
pure virtual
virtual void SalGraphicsImpl::drawPixel ( tools::Long  nX,
tools::Long  nY 
)
pure virtual
virtual void SalGraphicsImpl::drawPixel ( tools::Long  nX,
tools::Long  nY,
Color  nColor 
)
pure virtual
virtual void SalGraphicsImpl::drawPolygon ( sal_uInt32  nPoints,
const Point pPtAry 
)
pure virtual
virtual bool SalGraphicsImpl::drawPolygonBezier ( sal_uInt32  nPoints,
const Point pPtAry,
const PolyFlags pFlgAry 
)
pure virtual
virtual void SalGraphicsImpl::drawPolyLine ( sal_uInt32  nPoints,
const Point pPtAry 
)
pure virtual
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
virtual bool SalGraphicsImpl::drawPolyLineBezier ( sal_uInt32  nPoints,
const Point pPtAry,
const PolyFlags pFlgAry 
)
pure virtual
virtual void SalGraphicsImpl::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point **  pPtAry 
)
pure virtual
virtual bool SalGraphicsImpl::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency 
)
pure virtual
virtual bool SalGraphicsImpl::drawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point *const *  pPtAry,
const PolyFlags *const *  pFlgAry 
)
pure virtual
virtual void SalGraphicsImpl::drawRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
pure virtual
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
virtual void SalGraphicsImpl::freeResources ( )
pure virtual
bool SalGraphicsImpl::getAntiAlias ( ) const
inline

Definition at line 60 of file salgdiimpl.hxx.

virtual sal_uInt16 SalGraphicsImpl::GetBitCount ( ) const
pure virtual
virtual std::shared_ptr<SalBitmap> SalGraphicsImpl::getBitmap ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
pure virtual
virtual tools::Long SalGraphicsImpl::GetGraphicsWidth ( ) const
pure virtual
virtual Color SalGraphicsImpl::getPixel ( tools::Long  nX,
tools::Long  nY 
)
pure virtual
virtual OUString SalGraphicsImpl::getRenderBackendName ( ) const
pure virtual
virtual bool SalGraphicsImpl::hasFastDrawTransformedBitmap ( ) const
pure virtual
virtual bool SalGraphicsImpl::implDrawGradient ( basegfx::B2DPolyPolygon const &  rPolyPolygon,
SalGradient const &  rGradient 
)
pure virtual
virtual void SalGraphicsImpl::Init ( )
pure virtual
virtual void SalGraphicsImpl::invert ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
SalInvert  nFlags 
)
pure virtual
virtual void SalGraphicsImpl::invert ( sal_uInt32  nPoints,
const Point pPtAry,
SalInvert  nFlags 
)
pure virtual
virtual void SalGraphicsImpl::ResetClipRegion ( )
pure virtual
void SalGraphicsImpl::setAntiAlias ( bool  bNew)
inline

Definition at line 55 of file salgdiimpl.hxx.

virtual bool SalGraphicsImpl::setClipRegion ( const vcl::Region )
pure virtual
virtual void SalGraphicsImpl::SetFillColor ( )
pure virtual
virtual void SalGraphicsImpl::SetFillColor ( Color  nColor)
pure virtual
virtual void SalGraphicsImpl::SetLineColor ( )
pure virtual
virtual void SalGraphicsImpl::SetLineColor ( Color  nColor)
pure virtual
virtual void SalGraphicsImpl::SetROPFillColor ( SalROPColor  nROPColor)
pure virtual
virtual void SalGraphicsImpl::SetROPLineColor ( SalROPColor  nROPColor)
pure virtual
virtual void SalGraphicsImpl::SetXORMode ( bool  bSet,
bool  bInvertOnly 
)
pure virtual
virtual bool SalGraphicsImpl::supportsOperation ( OutDevSupportType  eType) const
pure virtual

Member Data Documentation

bool SalGraphicsImpl::m_bAntiAlias
private

Definition at line 52 of file salgdiimpl.hxx.


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