LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
CairoCommon Struct Reference

#include <CairoCommon.hxx>

Collaboration diagram for CairoCommon:

Public Member Functions

 CairoCommon ()
cairo_surface_tgetSurface () const
sal_uInt16 GetBitCount () const
cairo_tgetCairoContext (bool bXorModeAllowed, bool bAntiAlias) const
void releaseCairoContext (cairo_t *cr, bool bXorModeAllowed, const basegfx::B2DRange &rExtents) const
cairo_tcreateTmpCompatibleCairoContext () const
void clipRegion (cairo_t *cr)
void SetXORMode (bool bSet, bool bInvertOnly)
void SetROPLineColor (SalROPColor nROPColor)
void SetROPFillColor (SalROPColor nROPColor)
void drawPixel (const std::optional< Color > &rLineColor, tools::Long nX, tools::Long nY, bool bAntiAlias)
void drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, bool bAntiAlias)
void drawRect (double nX, double nY, double nWidth, double nHeight, bool bAntiAlias)
void drawPolygon (sal_uInt32 nPoints, const Point *pPtAry, bool bAntiAlias)
void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry, bool bAntiAlias)
bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency, bool bAntiAlias)
void drawPolyLine (sal_uInt32 nPoints, const Point *pPtAry, bool bAntiAlias)
bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &rPolyLine, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin eLineJoin, css::drawing::LineCap eLineCap, double fMiterMinimumAngle, bool bPixelSnapHairline, bool bAntiAlias)
bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency, bool bAntiAlias)
bool drawGradient (const tools::PolyPolygon &rPolyPolygon, const Gradient &rGradient, bool bAntiAlias)
bool implDrawGradient (basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient, bool bAntiAlias)
void copyWithOperator (const SalTwoRect &rTR, cairo_surface_t *source, cairo_operator_t eOp, bool bAntiAlias)
void copySource (const SalTwoRect &rTR, cairo_surface_t *source, bool bAntiAlias)
void copyBitsCairo (const SalTwoRect &rTR, cairo_surface_t *pSourceSurface, bool bAntiAlias)
void invert (const basegfx::B2DPolygon &rPoly, SalInvert nFlags, bool bAntiAlias)
void invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags, bool bAntiAlias)
void invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags, bool bAntiAlias)
void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, bool bAntiAlias)
bool drawAlphaBitmap (const SalTwoRect &rTR, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap, bool bAntiAlias)
bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha, bool bAntiAlias)
void drawMask (const SalTwoRect &rTR, const SalBitmap &rSalBitmap, Color nMaskColor, bool bAntiAlias)
std::shared_ptr< SalBitmapgetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)

Static Public Member Functions

static cairo_user_data_key_tgetDamageKey ()
static void applyColor (cairo_t *cr, Color rColor, double fTransparency=0.0)
static void clipRegion (cairo_t *cr, const vcl::Region &rClipRegion)
static Color getPixel (cairo_surface_t *pSurface, tools::Long nX, tools::Long nY)
static basegfx::B2DRange renderSource (cairo_t *cr, const SalTwoRect &rTR, cairo_surface_t *source)
static cairo_surface_tcreateCairoSurface (const BitmapBuffer *pBuffer)
static bool supportsOperation (OutDevSupportType eType)
static bool hasFastDrawTransformedBitmap ()

Public Attributes

basegfx::B2IVector m_aFrameSize
vcl::Region m_aClipRegion
std::optional< Colorm_oLineColor
std::optional< Colorm_oFillColor
PaintMode m_ePaintMode
double m_fScale

Private Member Functions

void doXorOnRelease (sal_Int32 nExtentsLeft, sal_Int32 nExtentsTop, sal_Int32 nExtentsRight, sal_Int32 nExtentsBottom, cairo_surface_t *const surface, sal_Int32 nWidth) const

Detailed Description

Definition at line 129 of file CairoCommon.hxx.

Constructor & Destructor Documentation

◆ CairoCommon()

CairoCommon::CairoCommon ( )

Definition at line 139 of file CairoCommon.hxx.

Member Function Documentation

◆ applyColor()

static void CairoCommon::applyColor ( cairo_t cr,
Color  rColor,
double  fTransparency = 0.0 

◆ clipRegion() [1/2]

void CairoCommon::clipRegion ( cairo_t cr)

◆ clipRegion() [2/2]

static void CairoCommon::clipRegion ( cairo_t cr,
const vcl::Region rClipRegion 

◆ copyBitsCairo()

void CairoCommon::copyBitsCairo ( const SalTwoRect rTR,
cairo_surface_t pSourceSurface,
bool  bAntiAlias 

◆ copySource()

void CairoCommon::copySource ( const SalTwoRect rTR,
cairo_surface_t source,
bool  bAntiAlias 

◆ copyWithOperator()

void CairoCommon::copyWithOperator ( const SalTwoRect rTR,
cairo_surface_t source,
cairo_operator_t  eOp,
bool  bAntiAlias 

◆ createCairoSurface()

static cairo_surface_t * CairoCommon::createCairoSurface ( const BitmapBuffer pBuffer)

◆ createTmpCompatibleCairoContext()

cairo_t * CairoCommon::createTmpCompatibleCairoContext ( ) const

◆ doXorOnRelease()

void CairoCommon::doXorOnRelease ( sal_Int32  nExtentsLeft,
sal_Int32  nExtentsTop,
sal_Int32  nExtentsRight,
sal_Int32  nExtentsBottom,
cairo_surface_t *const  surface,
sal_Int32  nWidth 
) const

◆ drawAlphaBitmap()

bool CairoCommon::drawAlphaBitmap ( const SalTwoRect rTR,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap,
bool  bAntiAlias 

◆ drawAlphaRect()

bool CairoCommon::drawAlphaRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt8  nTransparency,
bool  bAntiAlias 

◆ drawBitmap()

void CairoCommon::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
bool  bAntiAlias 

◆ drawGradient()

bool CairoCommon::drawGradient ( const tools::PolyPolygon rPolyPolygon,
const Gradient rGradient,
bool  bAntiAlias 

◆ drawLine()

void CairoCommon::drawLine ( tools::Long  nX1,
tools::Long  nY1,
tools::Long  nX2,
tools::Long  nY2,
bool  bAntiAlias 

◆ drawMask()

void CairoCommon::drawMask ( const SalTwoRect rTR,
const SalBitmap rSalBitmap,
Color  nMaskColor,
bool  bAntiAlias 

◆ drawPixel()

void CairoCommon::drawPixel ( const std::optional< Color > &  rLineColor,
tools::Long  nX,
tools::Long  nY,
bool  bAntiAlias 

◆ drawPolygon()

void CairoCommon::drawPolygon ( sal_uInt32  nPoints,
const Point pPtAry,
bool  bAntiAlias 

◆ drawPolyLine() [1/2]

bool CairoCommon::drawPolyLine ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon rPolyLine,
double  fTransparency,
double  fLineWidth,
const std::vector< double > *  pStroke,
basegfx::B2DLineJoin  eLineJoin,
css::drawing::LineCap  eLineCap,
double  fMiterMinimumAngle,
bool  bPixelSnapHairline,
bool  bAntiAlias 

◆ drawPolyLine() [2/2]

void CairoCommon::drawPolyLine ( sal_uInt32  nPoints,
const Point pPtAry,
bool  bAntiAlias 

◆ drawPolyPolygon() [1/2]

bool CairoCommon::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency,
bool  bAntiAlias 

◆ drawPolyPolygon() [2/2]

void CairoCommon::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point **  pPtAry,
bool  bAntiAlias 

◆ drawRect()

void CairoCommon::drawRect ( double  nX,
double  nY,
double  nWidth,
double  nHeight,
bool  bAntiAlias 

◆ drawTransformedBitmap()

bool CairoCommon::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap,
double  fAlpha,
bool  bAntiAlias 

◆ GetBitCount()

sal_uInt16 CairoCommon::GetBitCount ( ) const

◆ getBitmap()

std::shared_ptr< SalBitmap > CairoCommon::getBitmap ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 

◆ getCairoContext()

cairo_t * CairoCommon::getCairoContext ( bool  bXorModeAllowed,
bool  bAntiAlias 
) const

◆ getDamageKey()

static cairo_user_data_key_t * CairoCommon::getDamageKey ( )

◆ getPixel()

static Color CairoCommon::getPixel ( cairo_surface_t pSurface,
tools::Long  nX,
tools::Long  nY 

◆ getSurface()

cairo_surface_t * CairoCommon::getSurface ( ) const

Definition at line 150 of file CairoCommon.hxx.

◆ hasFastDrawTransformedBitmap()

static bool CairoCommon::hasFastDrawTransformedBitmap ( )

◆ implDrawGradient()

bool CairoCommon::implDrawGradient ( basegfx::B2DPolyPolygon const &  rPolyPolygon,
SalGradient const &  rGradient,
bool  bAntiAlias 

◆ invert() [1/3]

void CairoCommon::invert ( const basegfx::B2DPolygon rPoly,
SalInvert  nFlags,
bool  bAntiAlias 

◆ invert() [2/3]

void CairoCommon::invert ( sal_uInt32  nPoints,
const Point pPtAry,
SalInvert  nFlags,
bool  bAntiAlias 

◆ invert() [3/3]

void CairoCommon::invert ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
SalInvert  nFlags,
bool  bAntiAlias 

◆ releaseCairoContext()

void CairoCommon::releaseCairoContext ( cairo_t cr,
bool  bXorModeAllowed,
const basegfx::B2DRange rExtents 
) const

◆ renderSource()

static basegfx::B2DRange CairoCommon::renderSource ( cairo_t cr,
const SalTwoRect rTR,
cairo_surface_t source 

◆ SetROPFillColor()

void CairoCommon::SetROPFillColor ( SalROPColor  nROPColor)

◆ SetROPLineColor()

void CairoCommon::SetROPLineColor ( SalROPColor  nROPColor)

◆ SetXORMode()

void CairoCommon::SetXORMode ( bool  bSet,
bool  bInvertOnly 

◆ supportsOperation()

static bool CairoCommon::supportsOperation ( OutDevSupportType  eType)

Member Data Documentation

◆ m_aClipRegion

vcl::Region CairoCommon::m_aClipRegion

Definition at line 133 of file CairoCommon.hxx.

◆ m_aFrameSize

basegfx::B2IVector CairoCommon::m_aFrameSize

Definition at line 132 of file CairoCommon.hxx.

◆ m_ePaintMode

PaintMode CairoCommon::m_ePaintMode

Definition at line 136 of file CairoCommon.hxx.

◆ m_fScale

double CairoCommon::m_fScale

Definition at line 137 of file CairoCommon.hxx.

◆ m_oFillColor

std::optional<Color> CairoCommon::m_oFillColor

Definition at line 135 of file CairoCommon.hxx.

◆ m_oLineColor

std::optional<Color> CairoCommon::m_oLineColor

Definition at line 134 of file CairoCommon.hxx.

◆ m_pSurface

cairo_surface_t* CairoCommon::m_pSurface

Definition at line 131 of file CairoCommon.hxx.

Referenced by SvpSalGraphics::getSurface().

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