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

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

#include <canvas.hxx>

Inheritance diagram for vclcanvas::Canvas:
[legend]
Collaboration diagram for vclcanvas::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
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual bool repaint (const GraphicObjectSharedPtr &rGrf, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const ::Point &rPt, const ::Size &rSz, const GraphicAttr &rAttr) const 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 74 of file canvas.hxx.

Constructor & Destructor Documentation

◆ Canvas()

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

◆ ~Canvas()

vclcanvas::Canvas::~Canvas ( )
overridevirtual

For resource tracking.

Definition at line 82 of file canvas.cxx.

References SAL_INFO.

Member Function Documentation

◆ disposeThis()

void vclcanvas::Canvas::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 87 of file canvas.cxx.

◆ getImplementationName()

OUString vclcanvas::Canvas::getImplementationName ( )
override

Definition at line 100 of file canvas.cxx.

◆ getServiceName()

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

Definition at line 95 of file canvas.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > vclcanvas::Canvas::getSupportedServiceNames ( )
override

Definition at line 108 of file canvas.cxx.

◆ initialize()

void vclcanvas::Canvas::initialize ( )

Definition at line 42 of file canvas.cxx.

References ENSURE_ARG_OR_THROW, and SAL_INFO.

◆ repaint()

virtual bool vclcanvas::Canvas::repaint ( const GraphicObjectSharedPtr rGrf,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState,
const ::Point rPt,
const ::Size rSz,
const GraphicAttr rAttr 
) const
overridevirtual

◆ supportsService()

sal_Bool vclcanvas::Canvas::supportsService ( OUString const &  ServiceName)
override

Definition at line 104 of file canvas.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maArguments

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

Definition at line 114 of file canvas.hxx.


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