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 38 of file cairo_spritedevicehelper.hxx.

Constructor & Destructor Documentation

cairocanvas::SpriteDeviceHelper::SpriteDeviceHelper ( )

Definition at line 42 of file cairo_spritedevicehelper.cxx.

References mpSpriteCanvas.

Member Function Documentation

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

Definition at line 132 of file cairo_spritedevicehelper.cxx.

References mpBufferSurface.

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

Dispose all internal references.

Definition at line 63 of file cairo_spritedevicehelper.cxx.

References mpBufferSurface, and mpSpriteCanvas.

void cairocanvas::SpriteDeviceHelper::flush ( )

SpriteDeviceHelper::flush Flush the platform native window.

Flushes the window by using the internally stored mpSysData.

Definition at line 153 of file cairo_spritedevicehelper.cxx.

References getWindowSurface().

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

Definition at line 62 of file cairo_spritedevicehelper.hxx.

References mpBufferSurface.

uno::Any cairocanvas::SpriteDeviceHelper::getDeviceHandle ( ) const
const ::basegfx::B2ISize& cairocanvas::SpriteDeviceHelper::getSizePixel ( ) const
inline

Definition at line 66 of file cairo_spritedevicehelper.hxx.

References maSize.

uno::Any cairocanvas::SpriteDeviceHelper::getSurfaceHandle ( ) const
SurfaceSharedPtr const & cairocanvas::SpriteDeviceHelper::getWindowSurface ( ) const

Definition at line 127 of file cairo_spritedevicehelper.cxx.

References cairocanvas::DeviceHelper::getSurface().

Referenced by flush(), and setSize().

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

Definition at line 82 of file cairo_spritedevicehelper.cxx.

void cairocanvas::SpriteDeviceHelper::notifySizeUpdate ( const css::awt::Rectangle &  rBounds)
void cairocanvas::SpriteDeviceHelper::setSize ( const ::basegfx::B2ISize rSize)
bool cairocanvas::SpriteDeviceHelper::showBuffer ( bool  ,
bool   
)

Definition at line 70 of file cairo_spritedevicehelper.cxx.

References SAL_WARN.

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

Definition at line 76 of file cairo_spritedevicehelper.cxx.

References SAL_WARN.

Member Data Documentation

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

Definition at line 75 of file cairo_spritedevicehelper.hxx.

Referenced by getSizePixel(), and setSize().

bool cairocanvas::SpriteDeviceHelper::mbFullScreen
private

Definition at line 76 of file cairo_spritedevicehelper.hxx.

Referenced by init().

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

Definition at line 73 of file cairo_spritedevicehelper.hxx.

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

SpriteCanvas* cairocanvas::SpriteDeviceHelper::mpSpriteCanvas
private

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

Definition at line 71 of file cairo_spritedevicehelper.hxx.

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


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