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

#include <dx_spritedevicehelper.hxx>

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

Public Member Functions

 SpriteDeviceHelper ()
 
void init (vcl::Window &rWindow, SpriteCanvas &rSpriteCanvas, const css::awt::Rectangle &rRect, bool bFullscreen)
 
void disposing ()
 Dispose all internal references. More...
 
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)
 
void destroyBuffers ()
 
bool showBuffer (bool bIsVisible, bool bUpdateAll)
 
bool switchBuffer (bool bIsVisible, bool bUpdateAll)
 
const IDXRenderModuleSharedPtrgetRenderModule () const
 
const DXSurfaceBitmapSharedPtrgetBackBuffer () const
 
const std::shared_ptr< canvas::ISurfaceProxyManager > & getSurfaceProxy () const
 
css::uno::Any isAccelerated () const
 
void notifySizeUpdate (const css::awt::Rectangle &rBounds)
 
void dumpScreenContent () const
 called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More...
 
- Public Member Functions inherited from dxcanvas::DeviceHelper
 DeviceHelper ()
 
 ~DeviceHelper ()
 
 DeviceHelper (const DeviceHelper &)=delete
 make noncopyable More...
 
const DeviceHelperoperator= (const DeviceHelper &)=delete
 
void init (HDC hdc, OutputDevice *pOutputDev, css::rendering::XGraphicDevice &rDevice)
 Init the device 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 > getColorSpace () const
 
void dumpScreenContent () const
 called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More...
 

Private Member Functions

void resizeBackBuffer (const ::basegfx::B2ISize &rNewSize)
 
HWND getHwnd () const
 

Private Attributes

SpriteCanvasmpSpriteCanvas
 Pointer to sprite canvas (owner of this helper), needed to create bitmaps. More...
 
DXSurfaceBitmapSharedPtr mpBackBuffer
 
std::shared_ptr< canvas::ISurfaceProxyManagermpSurfaceProxyManager
 Instance passing out HW textures. More...
 
IDXRenderModuleSharedPtr mpRenderModule
 Our encapsulation interface to DirectX. More...
 

Additional Inherited Members

- Protected Member Functions inherited from dxcanvas::DeviceHelper
HDC getHDC () const
 
css::rendering::XGraphicDevice * getDevice () const
 

Detailed Description

Definition at line 38 of file dx_spritedevicehelper.hxx.

Constructor & Destructor Documentation

dxcanvas::SpriteDeviceHelper::SpriteDeviceHelper ( )

Definition at line 42 of file dx_spritedevicehelper.cxx.

References mpSpriteCanvas.

Member Function Documentation

css::uno::Reference< css::rendering::XBitmap > dxcanvas::SpriteDeviceHelper::createCompatibleAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
css::uno::Reference< css::rendering::XBitmap > dxcanvas::SpriteDeviceHelper::createCompatibleBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
css::uno::Reference< css::rendering::XVolatileBitmap > dxcanvas::SpriteDeviceHelper::createVolatileAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
css::uno::Reference< css::rendering::XVolatileBitmap > dxcanvas::SpriteDeviceHelper::createVolatileBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
void dxcanvas::SpriteDeviceHelper::destroyBuffers ( )

Definition at line 158 of file dx_spritedevicehelper.cxx.

void dxcanvas::SpriteDeviceHelper::disposing ( )

Dispose all internal references.

Definition at line 97 of file dx_spritedevicehelper.cxx.

References dxcanvas::DeviceHelper::disposing(), mpBackBuffer, mpRenderModule, mpSpriteCanvas, and mpSurfaceProxyManager.

void dxcanvas::SpriteDeviceHelper::dumpScreenContent ( ) const

called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen.

Definition at line 213 of file dx_spritedevicehelper.cxx.

References mpRenderModule.

const DXSurfaceBitmapSharedPtr& dxcanvas::SpriteDeviceHelper::getBackBuffer ( ) const
inline

Definition at line 70 of file dx_spritedevicehelper.hxx.

References mpBackBuffer.

HWND dxcanvas::SpriteDeviceHelper::getHwnd ( ) const
private

Definition at line 205 of file dx_spritedevicehelper.cxx.

References mpRenderModule.

const IDXRenderModuleSharedPtr& dxcanvas::SpriteDeviceHelper::getRenderModule ( ) const
inline

Definition at line 69 of file dx_spritedevicehelper.hxx.

References mpRenderModule.

const std::shared_ptr<canvas::ISurfaceProxyManager>& dxcanvas::SpriteDeviceHelper::getSurfaceProxy ( ) const
inline

Definition at line 71 of file dx_spritedevicehelper.hxx.

References mpSurfaceProxyManager.

void dxcanvas::SpriteDeviceHelper::init ( vcl::Window rWindow,
SpriteCanvas rSpriteCanvas,
const css::awt::Rectangle &  rRect,
bool  bFullscreen 
)
uno::Any dxcanvas::SpriteDeviceHelper::isAccelerated ( ) const

Definition at line 176 of file dx_spritedevicehelper.cxx.

void dxcanvas::SpriteDeviceHelper::notifySizeUpdate ( const css::awt::Rectangle &  rBounds)
void dxcanvas::SpriteDeviceHelper::resizeBackBuffer ( const ::basegfx::B2ISize rNewSize)
private

Definition at line 195 of file dx_spritedevicehelper.cxx.

References mpBackBuffer.

bool dxcanvas::SpriteDeviceHelper::showBuffer ( bool  bIsVisible,
bool  bUpdateAll 
)

Definition at line 164 of file dx_spritedevicehelper.cxx.

References SAL_WARN.

bool dxcanvas::SpriteDeviceHelper::switchBuffer ( bool  bIsVisible,
bool  bUpdateAll 
)

Definition at line 170 of file dx_spritedevicehelper.cxx.

References SAL_WARN.

Member Data Documentation

DXSurfaceBitmapSharedPtr dxcanvas::SpriteDeviceHelper::mpBackBuffer
private

Definition at line 89 of file dx_spritedevicehelper.hxx.

Referenced by disposing(), getBackBuffer(), and resizeBackBuffer().

IDXRenderModuleSharedPtr dxcanvas::SpriteDeviceHelper::mpRenderModule
private

Our encapsulation interface to DirectX.

Definition at line 95 of file dx_spritedevicehelper.hxx.

Referenced by disposing(), dumpScreenContent(), getHwnd(), and getRenderModule().

SpriteCanvas* dxcanvas::SpriteDeviceHelper::mpSpriteCanvas
private

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

Definition at line 87 of file dx_spritedevicehelper.hxx.

Referenced by disposing().

std::shared_ptr<canvas::ISurfaceProxyManager> dxcanvas::SpriteDeviceHelper::mpSurfaceProxyManager
private

Instance passing out HW textures.

Definition at line 92 of file dx_spritedevicehelper.hxx.

Referenced by disposing(), and getSurfaceProxy().


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