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

Product of this component's factory. More...

#include <cairo_canvas.hxx>

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

Public Member Functions

 Canvas (const css::uno::Sequence< css::uno::Any > &aArguments, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
void initialize ()
 
virtual ~Canvas () override
 For resource tracking. More...
 
virtual void disposeThis () override
 Dispose all internal references. More...
 
virtual OUString SAL_CALL getServiceName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual bool repaint (const ::cairo::SurfaceSharedPtr &pSurface, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) 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
 
- 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
 

Private Attributes

css::uno::Sequence< css::uno::Any > maArguments
 

Detailed Description

Product of this component's factory.

The Canvas object combines the actual Window canvas with the XGraphicDevice interface. This is because there's a one-to-one relation between them, anyway, since each window can have exactly one canvas and one associated XGraphicDevice. And to avoid messing around with circular references, this is implemented as one single object.

Definition at line 95 of file cairo_canvas.hxx.

Constructor & Destructor Documentation

◆ Canvas()

cairocanvas::Canvas::Canvas ( const css::uno::Sequence< css::uno::Any > &  aArguments,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)

◆ ~Canvas()

cairocanvas::Canvas::~Canvas ( )
overridevirtual

For resource tracking.

Definition at line 98 of file cairo_canvas.cxx.

References SAL_INFO.

Member Function Documentation

◆ changeSurface()

SurfaceSharedPtr cairocanvas::Canvas::changeSurface ( )
override

Definition at line 162 of file cairo_canvas.cxx.

◆ createSurface() [1/2]

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

Definition at line 148 of file cairo_canvas.cxx.

References aData, Bitmap::GetSizePixel(), and Bitmap::GetSystemData().

◆ createSurface() [2/2]

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

Definition at line 143 of file cairo_canvas.cxx.

◆ disposeThis()

void cairocanvas::Canvas::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 103 of file cairo_canvas.cxx.

References m_aMutex.

◆ getImplementationName()

OUString cairocanvas::Canvas::getImplementationName ( )
overridevirtual

Definition at line 122 of file cairo_canvas.cxx.

◆ getOutputDevice()

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

Definition at line 168 of file cairo_canvas.cxx.

◆ getServiceName()

OUString SAL_CALL cairocanvas::Canvas::getServiceName ( )
overridevirtual

Definition at line 111 of file cairo_canvas.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > cairocanvas::Canvas::getSupportedServiceNames ( )
overridevirtual

Definition at line 126 of file cairo_canvas.cxx.

◆ getSurface()

SurfaceSharedPtr cairocanvas::Canvas::getSurface ( )
override

Definition at line 138 of file cairo_canvas.cxx.

◆ initialize()

void cairocanvas::Canvas::initialize ( )

◆ repaint()

virtual bool cairocanvas::Canvas::repaint ( const ::cairo::SurfaceSharedPtr pSurface,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
)
overridevirtual

◆ supportsService()

sal_Bool cairocanvas::Canvas::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 117 of file cairo_canvas.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ maArguments

css::uno::Sequence< css::uno::Any > cairocanvas::Canvas::maArguments
private

Definition at line 138 of file cairo_canvas.hxx.


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