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:
[legend]

Public Member Functions

 CairoCommon ()
 
cairo_surface_tgetSurface () const
 
cairo_tgetCairoContext (bool bXorModeAllowed, bool bAntiAlias) const
 
void releaseCairoContext (cairo_t *cr, bool bXorModeAllowed, const basegfx::B2DRange &rExtents) const
 
cairo_tcreateTmpCompatibleCairoContext () const
 
void applyColor (cairo_t *cr, Color rColor, double fTransparency=0.0)
 
void clipRegion (cairo_t *cr)
 
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)
 

Static Public Member Functions

static cairo_user_data_key_tgetDamageKey ()
 
static void clipRegion (cairo_t *cr, const vcl::Region &rClipRegion)
 
static bool drawPolyLine (cairo_t *cr, basegfx::B2DRange *pExtents, const Color &rLineColor, bool bAntiAlias, 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)
 
static basegfx::B2DRange renderSource (cairo_t *cr, const SalTwoRect &rTR, cairo_surface_t *source)
 
static cairo_surface_tcreateCairoSurface (const BitmapBuffer *pBuffer)
 

Public Attributes

cairo_surface_tm_pSurface
 
basegfx::B2IVector m_aFrameSize
 
vcl::Region m_aClipRegion
 
Color m_aLineColor
 
Color m_aFillColor
 
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 146 of file CairoCommon.hxx.

Constructor & Destructor Documentation

◆ CairoCommon()

CairoCommon::CairoCommon ( )
inline

Definition at line 156 of file CairoCommon.hxx.

Member Function Documentation

◆ applyColor()

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 
)
static

◆ 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)
static

◆ 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
private

◆ drawPolyLine()

static bool CairoCommon::drawPolyLine ( cairo_t cr,
basegfx::B2DRange pExtents,
const Color rLineColor,
bool  bAntiAlias,
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 
)
static

◆ getCairoContext()

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

◆ getDamageKey()

static cairo_user_data_key_t * CairoCommon::getDamageKey ( )
static

◆ getSurface()

cairo_surface_t * CairoCommon::getSurface ( ) const
inline

Definition at line 167 of file CairoCommon.hxx.

◆ invert()

void CairoCommon::invert ( const basegfx::B2DPolygon rPoly,
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 
)
static

Member Data Documentation

◆ m_aClipRegion

vcl::Region CairoCommon::m_aClipRegion

Definition at line 150 of file CairoCommon.hxx.

◆ m_aFillColor

Color CairoCommon::m_aFillColor

Definition at line 152 of file CairoCommon.hxx.

◆ m_aFrameSize

basegfx::B2IVector CairoCommon::m_aFrameSize

Definition at line 149 of file CairoCommon.hxx.

◆ m_aLineColor

Color CairoCommon::m_aLineColor

Definition at line 151 of file CairoCommon.hxx.

◆ m_ePaintMode

PaintMode CairoCommon::m_ePaintMode

Definition at line 153 of file CairoCommon.hxx.

◆ m_fScale

double CairoCommon::m_fScale

Definition at line 154 of file CairoCommon.hxx.

◆ m_pSurface

cairo_surface_t* CairoCommon::m_pSurface

Definition at line 148 of file CairoCommon.hxx.

Referenced by SvpSalGraphics::getSurface().


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