LibreOffice Module vcl (master) 1
Classes | Typedefs | Enumerations | Functions
CairoCommon.hxx File Reference
#include <sal/config.h>
#include <config_features.h>
#include <cairo.h>
#include <vcl/dllapi.h>
#include <vcl/region.hxx>
#include <vcl/salgtype.hxx>
#include <vcl/vclenum.hxx>
#include <vcl/BitmapBuffer.hxx>
#include <com/sun/star/drawing/LineCap.hpp>
#include <basegfx/utils/systemdependentdata.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/range/b2irange.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <optional>
#include <unordered_map>
Include dependency graph for CairoCommon.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  SystemDependentData_CairoPath
class  PixelSnapper
struct  DamageHandler
struct  CairoCommon
class  SurfaceHelper


typedef struct _cairo cairo_t
typedef struct _cairo_surface cairo_surface_t
typedef struct _cairo_user_data_key cairo_user_data_key_t
typedef void(* damageHandler) (void *handle, sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, sal_Int32 nExtentsHeight)


enum class  PaintMode {
  Over ,


VCL_DLLPUBLIC void dl_cairo_surface_set_device_scale (cairo_surface_t *surface, double x_scale, double y_scale)
VCL_DLLPUBLIC void dl_cairo_surface_get_device_scale (cairo_surface_t *surface, double *x_scale, double *y_scale)
VCL_DLLPUBLIC basegfx::B2DRange getFillDamage (cairo_t *cr)
VCL_DLLPUBLIC basegfx::B2DRange getClipBox (cairo_t *cr)
VCL_DLLPUBLIC basegfx::B2DRange getClippedFillDamage (cairo_t *cr)
VCL_DLLPUBLIC basegfx::B2DRange getClippedStrokeDamage (cairo_t *cr)
VCL_DLLPUBLIC basegfx::B2DRange getStrokeDamage (cairo_t *cr)
VCL_DLLPUBLIC size_t AddPolygonToPath (cairo_t *cr, const basegfx::B2DPolygon &rPolygon, const basegfx::B2DHomMatrix &rObjectToDevice, bool bPixelSnap, bool bPixelSnapHairline)
VCL_DLLPUBLIC void add_polygon_path (cairo_t *cr, const basegfx::B2DPolyPolygon &rPolyPolygon, const basegfx::B2DHomMatrix &rObjectToDevice, bool bPixelSnap)
VCL_DLLPUBLIC cairo_format_t getCairoFormat (const BitmapBuffer &rBuffer)
VCL_DLLPUBLIC std::unique_ptr< BitmapBufferFastConvert24BitRgbTo32BitCairo (const BitmapBuffer *pSrc)

Typedef Documentation

◆ cairo_surface_t

typedef struct _cairo_surface cairo_surface_t

Definition at line 46 of file CairoCommon.hxx.

◆ cairo_t

typedef struct _cairo cairo_t

Definition at line 45 of file CairoCommon.hxx.

◆ cairo_user_data_key_t

typedef struct _cairo_user_data_key cairo_user_data_key_t

Definition at line 47 of file CairoCommon.hxx.

◆ damageHandler

typedef void(* damageHandler) (void *handle, sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, sal_Int32 nExtentsHeight)

Definition at line 120 of file CairoCommon.hxx.

Enumeration Type Documentation

◆ PaintMode

enum class PaintMode

Definition at line 114 of file CairoCommon.hxx.

Function Documentation

◆ add_polygon_path()

VCL_DLLPUBLIC void add_polygon_path ( cairo_t cr,
const basegfx::B2DPolyPolygon rPolyPolygon,
const basegfx::B2DHomMatrix rObjectToDevice,
bool  bPixelSnap 

◆ AddPolygonToPath()

VCL_DLLPUBLIC size_t AddPolygonToPath ( cairo_t cr,
const basegfx::B2DPolygon rPolygon,
const basegfx::B2DHomMatrix rObjectToDevice,
bool  bPixelSnap,
bool  bPixelSnapHairline 

◆ dl_cairo_surface_get_device_scale()

VCL_DLLPUBLIC void dl_cairo_surface_get_device_scale ( cairo_surface_t surface,
double *  x_scale,
double *  y_scale 

◆ dl_cairo_surface_set_device_scale()

VCL_DLLPUBLIC void dl_cairo_surface_set_device_scale ( cairo_surface_t surface,
double  x_scale,
double  y_scale 

◆ FastConvert24BitRgbTo32BitCairo()

VCL_DLLPUBLIC std::unique_ptr< BitmapBuffer > FastConvert24BitRgbTo32BitCairo ( const BitmapBuffer pSrc)

◆ getCairoFormat()

VCL_DLLPUBLIC cairo_format_t getCairoFormat ( const BitmapBuffer rBuffer)

◆ getClipBox()

VCL_DLLPUBLIC basegfx::B2DRange getClipBox ( cairo_t cr)

◆ getClippedFillDamage()

VCL_DLLPUBLIC basegfx::B2DRange getClippedFillDamage ( cairo_t cr)

◆ getClippedStrokeDamage()

VCL_DLLPUBLIC basegfx::B2DRange getClippedStrokeDamage ( cairo_t cr)

◆ getFillDamage()

VCL_DLLPUBLIC basegfx::B2DRange getFillDamage ( cairo_t cr)

◆ getStrokeDamage()

VCL_DLLPUBLIC basegfx::B2DRange getStrokeDamage ( cairo_t cr)