LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SurfaceHelper Class Reference

#include <CairoCommon.hxx>

Inheritance diagram for SurfaceHelper:
[legend]

Public Member Functions

 SurfaceHelper ()
 
 ~SurfaceHelper ()
 
cairo_surface_tgetSurface (unsigned long nTargetWidth=0, unsigned long nTargetHeight=0) const
 

Protected Member Functions

cairo_surface_timplGetSurface () const
 
void implSetSurface (cairo_surface_t *pNew)
 
bool isTrivial () const
 

Private Member Functions

 SurfaceHelper (const SurfaceHelper &)=delete
 
SurfaceHelperoperator= (const SurfaceHelper &)=delete
 
cairo_surface_timplCreateOrReuseDownscale (unsigned long nTargetWidth, unsigned long nTargetHeight)
 

Private Attributes

cairo_surface_tpSurface
 
std::unordered_map< sal_uInt64, cairo_surface_t * > maDownscaled
 

Detailed Description

Definition at line 246 of file CairoCommon.hxx.

Constructor & Destructor Documentation

◆ SurfaceHelper() [1/2]

SurfaceHelper::SurfaceHelper ( const SurfaceHelper )
privatedelete

◆ SurfaceHelper() [2/2]

SurfaceHelper::SurfaceHelper ( )
explicit

◆ ~SurfaceHelper()

SurfaceHelper::~SurfaceHelper ( )

Member Function Documentation

◆ getSurface()

cairo_surface_t * SurfaceHelper::getSurface ( unsigned long  nTargetWidth = 0,
unsigned long  nTargetHeight = 0 
) const

◆ implCreateOrReuseDownscale()

cairo_surface_t * SurfaceHelper::implCreateOrReuseDownscale ( unsigned long  nTargetWidth,
unsigned long  nTargetHeight 
)
private

◆ implGetSurface()

cairo_surface_t * SurfaceHelper::implGetSurface ( ) const
inlineprotected

Definition at line 259 of file CairoCommon.hxx.

◆ implSetSurface()

void SurfaceHelper::implSetSurface ( cairo_surface_t pNew)
inlineprotected

Definition at line 260 of file CairoCommon.hxx.

◆ isTrivial()

bool SurfaceHelper::isTrivial ( ) const
protected

◆ operator=()

SurfaceHelper & SurfaceHelper::operator= ( const SurfaceHelper )
privatedelete

Member Data Documentation

◆ maDownscaled

std::unordered_map<sal_uInt64, cairo_surface_t*> SurfaceHelper::maDownscaled
private

Definition at line 250 of file CairoCommon.hxx.

◆ pSurface

cairo_surface_t* SurfaceHelper::pSurface
private

Definition at line 249 of file CairoCommon.hxx.


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