LibreOffice Module vcl (master) 1
|
#include <CairoCommon.hxx>
Public Member Functions | |
CairoCommon () | |
cairo_surface_t * | getSurface () const |
sal_uInt16 | GetBitCount () const |
cairo_t * | getCairoContext (bool bXorModeAllowed, bool bAntiAlias) const |
void | releaseCairoContext (cairo_t *cr, bool bXorModeAllowed, const basegfx::B2DRange &rExtents) const |
cairo_t * | createTmpCompatibleCairoContext () 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< SalBitmap > | getBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) |
Static Public Member Functions | |
static cairo_user_data_key_t * | getDamageKey () |
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_t * | createCairoSurface (const BitmapBuffer *pBuffer) |
static bool | supportsOperation (OutDevSupportType eType) |
static bool | hasFastDrawTransformedBitmap () |
Public Attributes | |
cairo_surface_t * | m_pSurface |
basegfx::B2IVector | m_aFrameSize |
vcl::Region | m_aClipRegion |
std::optional< Color > | m_oLineColor |
std::optional< Color > | m_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 |
Definition at line 129 of file CairoCommon.hxx.
|
inline |
Definition at line 139 of file CairoCommon.hxx.
|
static |
void CairoCommon::clipRegion | ( | cairo_t * | cr | ) |
Referenced by SvpSalGraphics::clipRegion().
|
static |
void CairoCommon::copyBitsCairo | ( | const SalTwoRect & | rTR, |
cairo_surface_t * | pSourceSurface, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::copySource | ( | const SalTwoRect & | rTR, |
cairo_surface_t * | source, | ||
bool | bAntiAlias | ||
) |
Referenced by SvpSalGraphics::copySource().
void CairoCommon::copyWithOperator | ( | const SalTwoRect & | rTR, |
cairo_surface_t * | source, | ||
cairo_operator_t | eOp, | ||
bool | bAntiAlias | ||
) |
|
static |
cairo_t * CairoCommon::createTmpCompatibleCairoContext | ( | ) | const |
|
private |
bool CairoCommon::drawAlphaBitmap | ( | const SalTwoRect & | rTR, |
const SalBitmap & | rSourceBitmap, | ||
const SalBitmap & | rAlphaBitmap, | ||
bool | bAntiAlias | ||
) |
bool CairoCommon::drawAlphaRect | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
sal_uInt8 | nTransparency, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalBitmap, | ||
bool | bAntiAlias | ||
) |
bool CairoCommon::drawGradient | ( | const tools::PolyPolygon & | rPolyPolygon, |
const Gradient & | rGradient, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawLine | ( | tools::Long | nX1, |
tools::Long | nY1, | ||
tools::Long | nX2, | ||
tools::Long | nY2, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawMask | ( | const SalTwoRect & | rTR, |
const SalBitmap & | rSalBitmap, | ||
Color | nMaskColor, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawPixel | ( | const std::optional< Color > & | rLineColor, |
tools::Long | nX, | ||
tools::Long | nY, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawPolygon | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
bool | bAntiAlias | ||
) |
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 | ||
) |
void CairoCommon::drawPolyLine | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
bool | bAntiAlias | ||
) |
bool CairoCommon::drawPolyPolygon | ( | const basegfx::B2DHomMatrix & | rObjectToDevice, |
const basegfx::B2DPolyPolygon & | , | ||
double | fTransparency, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawPolyPolygon | ( | sal_uInt32 | nPoly, |
const sal_uInt32 * | pPoints, | ||
const Point ** | pPtAry, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::drawRect | ( | double | nX, |
double | nY, | ||
double | nWidth, | ||
double | nHeight, | ||
bool | bAntiAlias | ||
) |
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 | ||
) |
sal_uInt16 CairoCommon::GetBitCount | ( | ) | const |
std::shared_ptr< SalBitmap > CairoCommon::getBitmap | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight | ||
) |
cairo_t * CairoCommon::getCairoContext | ( | bool | bXorModeAllowed, |
bool | bAntiAlias | ||
) | const |
Referenced by SvpSalGraphics::getCairoContext().
|
static |
Referenced by SvpSalGraphics::getDamageKey().
|
static |
|
inline |
Definition at line 150 of file CairoCommon.hxx.
|
static |
bool CairoCommon::implDrawGradient | ( | basegfx::B2DPolyPolygon const & | rPolyPolygon, |
SalGradient const & | rGradient, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::invert | ( | const basegfx::B2DPolygon & | rPoly, |
SalInvert | nFlags, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::invert | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
SalInvert | nFlags, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::invert | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
SalInvert | nFlags, | ||
bool | bAntiAlias | ||
) |
void CairoCommon::releaseCairoContext | ( | cairo_t * | cr, |
bool | bXorModeAllowed, | ||
const basegfx::B2DRange & | rExtents | ||
) | const |
|
static |
void CairoCommon::SetROPFillColor | ( | SalROPColor | nROPColor | ) |
void CairoCommon::SetROPLineColor | ( | SalROPColor | nROPColor | ) |
void CairoCommon::SetXORMode | ( | bool | bSet, |
bool | bInvertOnly | ||
) |
|
static |
vcl::Region CairoCommon::m_aClipRegion |
Definition at line 133 of file CairoCommon.hxx.
basegfx::B2IVector CairoCommon::m_aFrameSize |
Definition at line 132 of file CairoCommon.hxx.
PaintMode CairoCommon::m_ePaintMode |
Definition at line 136 of file CairoCommon.hxx.
double CairoCommon::m_fScale |
Definition at line 137 of file CairoCommon.hxx.
std::optional<Color> CairoCommon::m_oFillColor |
Definition at line 135 of file CairoCommon.hxx.
std::optional<Color> CairoCommon::m_oLineColor |
Definition at line 134 of file CairoCommon.hxx.
cairo_surface_t* CairoCommon::m_pSurface |
Definition at line 131 of file CairoCommon.hxx.
Referenced by SvpSalGraphics::getSurface().