LibreOffice Module canvas (master)  1
Public Member Functions | Private Attributes | List of all members
cairocanvas::CanvasBitmap Class Reference

#include <cairo_canvasbitmap.hxx>

Inheritance diagram for cairocanvas::CanvasBitmap:
[legend]
Collaboration diagram for cairocanvas::CanvasBitmap:
[legend]

Public Member Functions

 CanvasBitmap (const ::basegfx::B2ISize &rSize, const SurfaceProviderRef &rDevice, css::rendering::XGraphicDevice *pDevice, bool bHasAlpha)
 Create a canvas bitmap for the given surface. More...
 
virtual void disposeThis () override
 Dispose all internal references. More...
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual ::cairo::SurfaceSharedPtr getSurface () override
 
virtual ::cairo::SurfaceSharedPtr createSurface (const ::basegfx::B2ISize &rSize, int aContent) override
 
virtual ::cairo::SurfaceSharedPtr createSurface (::Bitmap &rBitmap) override
 
virtual ::cairo::SurfaceSharedPtr changeSurface () override
 
virtual OutputDevicegetOutputDevice () override
 
virtual bool repaint (const ::cairo::SurfaceSharedPtr &pSurface, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32, const css::uno::Any &) override
 
- Public Member Functions inherited from canvas::IntegerBitmapBase< Base >
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setData (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setPixel (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::rendering::IntegerBitmapLayout SAL_CALL getMemoryLayout () override
 
- Public Member Functions inherited from Base
 Base (uno_Environment *pEnv, cppu::Enterable *pEnterable)
 
void acquireWeak ()
 
void releaseWeak ()
 
void harden (uno_Environment **ppHardEnv)
 
void acquire ()
 
void release ()
 
void registerProxyInterface (void **ppProxy, uno_freeProxyFunc freeProxy, OUString const &oid, typelib_InterfaceTypeDescription *pTypeDescr)
 
void revokeInterface (void *pInterface)
 
void getObjectIdentifier (void *pInterface, OUString *pOid)
 
void getRegisteredInterface (void **, OUString const &oid, typelib_InterfaceTypeDescription *)
 
void getRegisteredInterfaces (void ***, sal_Int32 *pnLen, uno_memAlloc memAlloc)
 
void computeObjectIdentifier (void *pInterface, OUString *pOid)
 
void acquireInterface (void *pInterface)
 
void releaseInterface (void *pInterface)
 
virtual void v_enter () override
 
virtual void v_leave () override
 
virtual void v_callInto_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual void v_callOut_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual bool v_isValid (OUString *pReason) override
 
- Public Member Functions inherited from cppu::Enterable
virtual bool v_isValid (rtl::OUString *pReason)=0
 
virtual ~Enterable ()
 
 Enterable ()
 
void enter ()
 
void leave ()
 
void callInto_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callOut_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callInto (uno_EnvCallee *pCallee,...)
 
void callOut (uno_EnvCallee *pCallee,...)
 
int isValid (rtl::OUString *pReason)
 
- Public Member Functions inherited from cairocanvas::RepaintTarget
virtual ~RepaintTarget ()
 

Private Attributes

SurfaceProviderRef mpSurfaceProvider
 
::cairo::SurfaceSharedPtr mpBufferSurface
 
::cairo::CairoSharedPtr mpBufferCairo
 
const ::basegfx::B2ISize maSize
 
const bool mbHasAlpha
 

Additional Inherited Members

- Protected Member Functions inherited from Base
virtual ~Base () override
 
- Protected Attributes inherited from Base
oslInterlockedCount m_nRef
 
uno_Environmentm_pEnv
 
std::unique_ptr< cppu::Enterablem_pEnterable
 
EnvFun_Pm_env_acquire
 
EnvFun_Pm_env_release
 
EnvFun_PP_Pm_env_harden
 
EnvFun_Pm_env_acquireWeak
 
EnvFun_Pm_env_releaseWeak
 
ExtEnv_registerProxyInterfacem_env_registerProxyInterface
 
ExtEnv_revokeInterfacem_env_revokeInterface
 
ExtEnv_getObjectIdentifierm_env_getObjectIdentifier
 
ExtEnv_getRegisteredInterfacem_env_getRegisteredInterface
 
ExtEnv_getRegisteredInterfacesm_env_getRegisteredInterfaces
 
ExtEnv_computeObjectIdentifierm_env_computeObjectIdentifier
 
ExtEnv_acquireInterfacem_env_acquireInterface
 
ExtEnv_releaseInterfacem_env_releaseInterface
 

Detailed Description

Definition at line 62 of file cairo_canvasbitmap.hxx.

Constructor & Destructor Documentation

cairocanvas::CanvasBitmap::CanvasBitmap ( const ::basegfx::B2ISize rSize,
const SurfaceProviderRef rDevice,
css::rendering::XGraphicDevice *  pDevice,
bool  bHasAlpha 
)

Create a canvas bitmap for the given surface.

Parameters
rSizeSize of the bitmap
rDeviceReference device, with which bitmap should be compatible

Member Function Documentation

SurfaceSharedPtr cairocanvas::CanvasBitmap::changeSurface ( )
override

Definition at line 90 of file cairo_canvasbitmap.cxx.

SurfaceSharedPtr cairocanvas::CanvasBitmap::createSurface ( const ::basegfx::B2ISize rSize,
int  aContent 
)
override

Definition at line 80 of file cairo_canvasbitmap.cxx.

References mpSurfaceProvider.

SurfaceSharedPtr cairocanvas::CanvasBitmap::createSurface ( ::Bitmap rBitmap)
override

Definition at line 85 of file cairo_canvasbitmap.cxx.

References mpSurfaceProvider.

void cairocanvas::CanvasBitmap::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 64 of file cairo_canvasbitmap.cxx.

References mpBufferCairo, and mpSurfaceProvider.

uno::Any SAL_CALL cairocanvas::CanvasBitmap::getFastPropertyValue ( sal_Int32  nHandle)
overridevirtual
OUString SAL_CALL cairocanvas::CanvasBitmap::getImplementationName ( )
overridevirtual

Definition at line 147 of file cairo_canvasbitmap.cxx.

OutputDevice * cairocanvas::CanvasBitmap::getOutputDevice ( )
overridevirtual

Definition at line 96 of file cairo_canvasbitmap.cxx.

References mpSurfaceProvider.

Referenced by getFastPropertyValue().

uno::Sequence< OUString > SAL_CALL cairocanvas::CanvasBitmap::getSupportedServiceNames ( )
overridevirtual

Definition at line 157 of file cairo_canvasbitmap.cxx.

SurfaceSharedPtr cairocanvas::CanvasBitmap::getSurface ( )
override

Definition at line 75 of file cairo_canvasbitmap.cxx.

References mpBufferSurface.

Referenced by getFastPropertyValue(), and cairocanvas::surfaceFromXBitmap().

virtual bool cairocanvas::CanvasBitmap::repaint ( const ::cairo::SurfaceSharedPtr pSurface,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
)
overridevirtual
virtual void SAL_CALL cairocanvas::CanvasBitmap::setFastPropertyValue ( sal_Int32  ,
const css::uno::Any &   
)
inlineoverridevirtual

Definition at line 117 of file cairo_canvasbitmap.hxx.

sal_Bool SAL_CALL cairocanvas::CanvasBitmap::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 152 of file cairo_canvasbitmap.cxx.

References cppu::supportsService().

Member Data Documentation

const ::basegfx::B2ISize cairocanvas::CanvasBitmap::maSize
private

Definition at line 124 of file cairo_canvasbitmap.hxx.

Referenced by getFastPropertyValue().

const bool cairocanvas::CanvasBitmap::mbHasAlpha
private

Definition at line 125 of file cairo_canvasbitmap.hxx.

Referenced by getFastPropertyValue().

::cairo::CairoSharedPtr cairocanvas::CanvasBitmap::mpBufferCairo
private

Definition at line 122 of file cairo_canvasbitmap.hxx.

Referenced by disposeThis().

::cairo::SurfaceSharedPtr cairocanvas::CanvasBitmap::mpBufferSurface
private

Definition at line 121 of file cairo_canvasbitmap.hxx.

Referenced by getSurface().

SurfaceProviderRef cairocanvas::CanvasBitmap::mpSurfaceProvider
private

Definition at line 120 of file cairo_canvasbitmap.hxx.

Referenced by createSurface(), disposeThis(), and getOutputDevice().


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