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

#include <cachedbitmap.hxx>

Inheritance diagram for vclcanvas::CachedBitmap:
Collaboration diagram for vclcanvas::CachedBitmap:

Public Member Functions

 CachedBitmap (GraphicObjectSharedPtr xGraphicObject, const ::Point &rPoint, const ::Size &rSize, const GraphicAttr &rAttr, const css::rendering::ViewState &rUsedViewState, css::rendering::RenderState aUsedRenderState, const css::uno::Reference< css::rendering::XCanvas > &rTarget)
 Create an XCachedPrimitive for given GraphicObject. More...
virtual void SAL_CALL disposing () override
 Dispose all internal references. More...
- Public Member Functions inherited from canvas::CachedPrimitiveBase
 CachedPrimitiveBase (css::rendering::ViewState rUsedViewState, css::uno::Reference< css::rendering::XCanvas > xTarget)
 Create an XCachedPrimitive for given target canvas. More...
virtual void SAL_CALL disposing () override
 Dispose all internal references. More...
virtual ::sal_Int8 SAL_CALL redraw (const css::rendering::ViewState &aState) override
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

Private Member Functions

virtual ::sal_Int8 doRedraw (const css::rendering::ViewState &rNewState, const css::rendering::ViewState &rOldState, const css::uno::Reference< css::rendering::XCanvas > &rTargetCanvas, bool bSameViewTransform) override
 Actually perform the requested redraw. More...

Private Attributes

GraphicObjectSharedPtr mpGraphicObject
const css::rendering::RenderState maRenderState
const ::Point maPoint
const ::Size maSize
const GraphicAttr maAttributes

Additional Inherited Members

- Protected Member Functions inherited from canvas::CachedPrimitiveBase
virtual ~CachedPrimitiveBase () override
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex

Detailed Description

Definition at line 34 of file cachedbitmap.hxx.

Constructor & Destructor Documentation

◆ CachedBitmap()

vclcanvas::CachedBitmap::CachedBitmap ( GraphicObjectSharedPtr  xGraphicObject,
const ::Point &  rPoint,
const ::Size rSize,
const GraphicAttr rAttr,
const css::rendering::ViewState rUsedViewState,
css::rendering::RenderState  aUsedRenderState,
const css::uno::Reference< css::rendering::XCanvas > &  rTarget 

Create an XCachedPrimitive for given GraphicObject.

Member Function Documentation

◆ disposing()

void SAL_CALL vclcanvas::CachedBitmap::disposing ( )

Dispose all internal references.

Reimplemented from canvas::CachedPrimitiveBase.

Definition at line 51 of file cachedbitmap.cxx.

References m_aMutex.

◆ doRedraw()

virtual ::sal_Int8 vclcanvas::CachedBitmap::doRedraw ( const css::rendering::ViewState rNewState,
const css::rendering::ViewState rOldState,
const css::uno::Reference< css::rendering::XCanvas > &  rTargetCanvas,
bool  bSameViewTransform 

Actually perform the requested redraw.

Clients must override this method, instead of the public redraw() one.

rNewStateThe viewstate to redraw with
rOldStateThe viewstate this cache object was created with.
rTargetCanvasTarget canvas to render to.
bSameViewTransformWhen true, rNewState and rOldState have the same transformation.

Implements canvas::CachedPrimitiveBase.

Member Data Documentation

◆ maAttributes

const GraphicAttr vclcanvas::CachedBitmap::maAttributes

Definition at line 62 of file cachedbitmap.hxx.

◆ maPoint

const ::Point vclcanvas::CachedBitmap::maPoint

Definition at line 60 of file cachedbitmap.hxx.

◆ maRenderState

const css::rendering::RenderState vclcanvas::CachedBitmap::maRenderState

Definition at line 59 of file cachedbitmap.hxx.

◆ maSize

const ::Size vclcanvas::CachedBitmap::maSize

Definition at line 61 of file cachedbitmap.hxx.

◆ mpGraphicObject

GraphicObjectSharedPtr vclcanvas::CachedBitmap::mpGraphicObject

Definition at line 58 of file cachedbitmap.hxx.

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