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

#include <cairo_spritedevicehelper.hxx>

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

Public Member Functions

 SpriteDeviceHelper ()
 
void init (vcl::Window &rOutputWindow, SpriteCanvas &rSpriteCanvas, const ::basegfx::B2ISize &rSize, bool bFullscreen)
 
void disposing ()
 Dispose all internal references. More...
 
bool showBuffer (bool, bool)
 
bool switchBuffer (bool, bool bUpdateAll)
 
css::uno::Any isAccelerated () const
 
css::uno::Any getDeviceHandle () const
 
css::uno::Any getSurfaceHandle () const
 
void notifySizeUpdate (const css::awt::Rectangle &rBounds)
 
void setSize (const ::basegfx::B2ISize &rSize)
 
const ::cairo::SurfaceSharedPtrgetBufferSurface () const
 
::cairo::SurfaceSharedPtr const & getWindowSurface () const
 
::cairo::SurfaceSharedPtr createSurface (const ::basegfx::B2ISize &rSize, int aContent)
 
::cairo::SurfaceSharedPtr createSurface (BitmapSystemData const &rData, const Size &rSize)
 
const ::basegfx::B2ISizegetSizePixel () const
 
void flush ()
 SpriteDeviceHelper::flush Flush the platform native window. More...
 
- Public Member Functions inherited from cairocanvas::DeviceHelper
 DeviceHelper (const DeviceHelper &)=delete
 make noncopyable More...
 
const DeviceHelperoperator= (const DeviceHelper &)=delete
 
 DeviceHelper ()
 
void init (SurfaceProvider &rSurfaceProvider, OutputDevice &rRefDevice)
 init helper More...
 
void disposing ()
 Dispose all internal references. More...
 
css::geometry::RealSize2D getPhysicalResolution ()
 
css::geometry::RealSize2D getPhysicalSize ()
 
css::uno::Reference< css::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &points)
 
css::uno::Reference< css::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &points)
 
css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Any isAccelerated () const
 
css::uno::Any getDeviceHandle () const
 
css::uno::Any getSurfaceHandle () const
 
css::uno::Reference< css::rendering::XColorSpace > const & getColorSpace () const
 
void dumpScreenContent () const
 called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More...
 
OutputDevicegetOutputDevice () const
 
const ::cairo::SurfaceSharedPtrgetSurface () const
 
::cairo::SurfaceSharedPtr createSurface (const ::basegfx::B2ISize &rSize, int aContent)
 
::cairo::SurfaceSharedPtr createSurface (BitmapSystemData const &rData, const Size &rSize)
 

Private Attributes

SpriteCanvasmpSpriteCanvas
 Pointer to sprite canvas (owner of this helper), needed to create bitmaps. More...
 
::cairo::SurfaceSharedPtr mpBufferSurface
 
::basegfx::B2ISize maSize
 
bool mbFullScreen
 

Additional Inherited Members

- Protected Member Functions inherited from cairocanvas::DeviceHelper
void implInit (SurfaceProvider &rSurfaceProvider, OutputDevice &rRefDevice)
 init helper More...
 
void setSize (const ::basegfx::B2ISize &rSize)
 

Detailed Description

Definition at line 35 of file cairo_spritedevicehelper.hxx.

Constructor & Destructor Documentation

◆ SpriteDeviceHelper()

cairocanvas::SpriteDeviceHelper::SpriteDeviceHelper ( )

Definition at line 36 of file cairo_spritedevicehelper.cxx.

References mpSpriteCanvas.

Member Function Documentation

◆ createSurface() [1/2]

SurfaceSharedPtr cairocanvas::SpriteDeviceHelper::createSurface ( BitmapSystemData const &  rData,
const Size rSize 
)

◆ createSurface() [2/2]

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

Definition at line 124 of file cairo_spritedevicehelper.cxx.

References mpBufferSurface.

◆ disposing()

void cairocanvas::SpriteDeviceHelper::disposing ( )

Dispose all internal references.

Definition at line 55 of file cairo_spritedevicehelper.cxx.

References mpBufferSurface, and mpSpriteCanvas.

◆ flush()

void cairocanvas::SpriteDeviceHelper::flush ( )

SpriteDeviceHelper::flush Flush the platform native window.

Flushes the window by using the internally stored mpSysData.

Definition at line 145 of file cairo_spritedevicehelper.cxx.

References getWindowSurface().

◆ getBufferSurface()

const ::cairo::SurfaceSharedPtr & cairocanvas::SpriteDeviceHelper::getBufferSurface ( ) const
inline

Definition at line 59 of file cairo_spritedevicehelper.hxx.

References mpBufferSurface.

◆ getDeviceHandle()

uno::Any cairocanvas::SpriteDeviceHelper::getDeviceHandle ( ) const

◆ getSizePixel()

const ::basegfx::B2ISize & cairocanvas::SpriteDeviceHelper::getSizePixel ( ) const
inline

Definition at line 63 of file cairo_spritedevicehelper.hxx.

References maSize.

◆ getSurfaceHandle()

uno::Any cairocanvas::SpriteDeviceHelper::getSurfaceHandle ( ) const

◆ getWindowSurface()

SurfaceSharedPtr const & cairocanvas::SpriteDeviceHelper::getWindowSurface ( ) const

Definition at line 119 of file cairo_spritedevicehelper.cxx.

References cairocanvas::DeviceHelper::getSurface().

Referenced by flush(), and setSize().

◆ init()

void cairocanvas::SpriteDeviceHelper::init ( vcl::Window rOutputWindow,
SpriteCanvas rSpriteCanvas,
const ::basegfx::B2ISize rSize,
bool  bFullscreen 
)

◆ isAccelerated()

uno::Any cairocanvas::SpriteDeviceHelper::isAccelerated ( ) const

Definition at line 74 of file cairo_spritedevicehelper.cxx.

◆ notifySizeUpdate()

void cairocanvas::SpriteDeviceHelper::notifySizeUpdate ( const css::awt::Rectangle &  rBounds)

◆ setSize()

void cairocanvas::SpriteDeviceHelper::setSize ( const ::basegfx::B2ISize rSize)

◆ showBuffer()

bool cairocanvas::SpriteDeviceHelper::showBuffer ( bool  ,
bool   
)

Definition at line 62 of file cairo_spritedevicehelper.cxx.

References SAL_WARN.

◆ switchBuffer()

bool cairocanvas::SpriteDeviceHelper::switchBuffer ( bool  ,
bool  bUpdateAll 
)

Definition at line 68 of file cairo_spritedevicehelper.cxx.

References SAL_WARN.

Member Data Documentation

◆ maSize

::basegfx::B2ISize cairocanvas::SpriteDeviceHelper::maSize
private

Definition at line 72 of file cairo_spritedevicehelper.hxx.

Referenced by getSizePixel(), and setSize().

◆ mbFullScreen

bool cairocanvas::SpriteDeviceHelper::mbFullScreen
private

Definition at line 73 of file cairo_spritedevicehelper.hxx.

Referenced by init().

◆ mpBufferSurface

::cairo::SurfaceSharedPtr cairocanvas::SpriteDeviceHelper::mpBufferSurface
private

Definition at line 70 of file cairo_spritedevicehelper.hxx.

Referenced by createSurface(), disposing(), getBufferSurface(), and setSize().

◆ mpSpriteCanvas

SpriteCanvas* cairocanvas::SpriteDeviceHelper::mpSpriteCanvas
private

Pointer to sprite canvas (owner of this helper), needed to create bitmaps.

Definition at line 68 of file cairo_spritedevicehelper.hxx.

Referenced by disposing(), init(), and setSize().


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