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

#include <ogl_canvasbitmap.hxx>

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

Public Member Functions

 CanvasBitmap (const css::geometry::IntegerSize2D &rSize, SpriteCanvasRef rDevice, SpriteDeviceHelper &rDeviceHelper)
 Create a canvas bitmap for the given surface. More...
 
 CanvasBitmap (const CanvasBitmap &rSrc)
 Create verbatim copy (including all recorded actions) More...
 
virtual void disposeThis () override
 Dispose all internal references. More...
 
bool renderRecordedActions () const
 Write out recorded actions. More...
 
- 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

SpriteCanvasRef mpDevice
 MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) More...
 

Detailed Description

Definition at line 38 of file ogl_canvasbitmap.hxx.

Constructor & Destructor Documentation

◆ CanvasBitmap() [1/2]

oglcanvas::CanvasBitmap::CanvasBitmap ( const css::geometry::IntegerSize2D &  rSize,
SpriteCanvasRef  rDevice,
SpriteDeviceHelper rDeviceHelper 
)

Create a canvas bitmap for the given surface.

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

◆ CanvasBitmap() [2/2]

oglcanvas::CanvasBitmap::CanvasBitmap ( const CanvasBitmap rSrc)

Create verbatim copy (including all recorded actions)

Definition at line 34 of file ogl_canvasbitmap.cxx.

Member Function Documentation

◆ disposeThis()

void oglcanvas::CanvasBitmap::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 40 of file ogl_canvasbitmap.cxx.

References mpDevice.

◆ renderRecordedActions()

bool oglcanvas::CanvasBitmap::renderRecordedActions ( ) const

Write out recorded actions.

Definition at line 48 of file ogl_canvasbitmap.cxx.

Member Data Documentation

◆ mpDevice

SpriteCanvasRef oglcanvas::CanvasBitmap::mpDevice
private

MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)

Definition at line 68 of file ogl_canvasbitmap.hxx.

Referenced by disposeThis().


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