LibreOffice Module canvas (master)  1
Public Member Functions | List of all members
cairocanvas::SurfaceProvider Class Referenceabstract

Target interface for XCachedPrimitive implementations. More...

#include <cairo_surfaceprovider.hxx>

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

Public Member Functions

virtual ~SurfaceProvider ()
 
virtual ::cairo::SurfaceSharedPtr getSurface ()=0
 Query surface from this provider. More...
 
virtual ::cairo::SurfaceSharedPtr createSurface (const ::basegfx::B2ISize &rSize, int aContent)=0
 create new surface in given size More...
 
virtual ::cairo::SurfaceSharedPtr createSurface (::Bitmap &rBitmap)=0
 create new surface from given bitmap More...
 
virtual ::cairo::SurfaceSharedPtr changeSurface ()=0
 convert surface from alpha to non-alpha, does not copy content channel. More...
 
virtual OutputDevicegetOutputDevice ()=0
 Provides the underlying vcl outputdevice this surface renders on. More...
 

Detailed Description

Target interface for XCachedPrimitive implementations.

This interface must be implemented on all canvas implementations that hand out XCachedPrimitives

Definition at line 41 of file cairo_surfaceprovider.hxx.

Constructor & Destructor Documentation

virtual cairocanvas::SurfaceProvider::~SurfaceProvider ( )
inlinevirtual

Definition at line 44 of file cairo_surfaceprovider.hxx.

Member Function Documentation

virtual ::cairo::SurfaceSharedPtr cairocanvas::SurfaceProvider::changeSurface ( )
pure virtual

convert surface from alpha to non-alpha, does not copy content channel.

returns new surface on success, NULL otherwise

Referenced by cairocanvas::CanvasHelper::implDrawBitmapSurface().

virtual ::cairo::SurfaceSharedPtr cairocanvas::SurfaceProvider::createSurface ( const ::basegfx::B2ISize rSize,
int  aContent 
)
pure virtual

create new surface in given size

Referenced by cairocanvas::CanvasHelper::implDrawBitmapSurface().

virtual ::cairo::SurfaceSharedPtr cairocanvas::SurfaceProvider::createSurface ( ::Bitmap rBitmap)
pure virtual

create new surface from given bitmap

virtual OutputDevice* cairocanvas::SurfaceProvider::getOutputDevice ( )
pure virtual

Provides the underlying vcl outputdevice this surface renders on.

virtual ::cairo::SurfaceSharedPtr cairocanvas::SurfaceProvider::getSurface ( )
pure virtual

Query surface from this provider.

This should return the default surface to render on.

Referenced by cairocanvas::surfaceFromXBitmap().


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