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 37 of file dx_spritedevicehelper.hxx.

Constructor & Destructor Documentation

◆ SpriteDeviceHelper()

dxcanvas::SpriteDeviceHelper::SpriteDeviceHelper ( )

Definition at line 45 of file dx_spritedevicehelper.cxx.

References mpSpriteCanvas.

Member Function Documentation

◆ createCompatibleAlphaBitmap()

css::uno::Reference< css::rendering::XBitmap > dxcanvas::SpriteDeviceHelper::createCompatibleAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createCompatibleBitmap()

css::uno::Reference< css::rendering::XBitmap > dxcanvas::SpriteDeviceHelper::createCompatibleBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createVolatileAlphaBitmap()

css::uno::Reference< css::rendering::XVolatileBitmap > dxcanvas::SpriteDeviceHelper::createVolatileAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createVolatileBitmap()

css::uno::Reference< css::rendering::XVolatileBitmap > dxcanvas::SpriteDeviceHelper::createVolatileBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ destroyBuffers()

void dxcanvas::SpriteDeviceHelper::destroyBuffers ( )

Definition at line 159 of file dx_spritedevicehelper.cxx.

◆ disposing()

void dxcanvas::SpriteDeviceHelper::disposing ( )

Dispose all internal references.

Definition at line 100 of file dx_spritedevicehelper.cxx.

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

◆ dumpScreenContent()

void dxcanvas::SpriteDeviceHelper::dumpScreenContent ( ) const

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

Definition at line 214 of file dx_spritedevicehelper.cxx.

References mpRenderModule.

◆ getBackBuffer()

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

Definition at line 69 of file dx_spritedevicehelper.hxx.

References mpBackBuffer.

◆ getHwnd()

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

Definition at line 206 of file dx_spritedevicehelper.cxx.

References mpRenderModule.

◆ getRenderModule()

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

Definition at line 68 of file dx_spritedevicehelper.hxx.

References mpRenderModule.

◆ getSurfaceProxy()

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

Definition at line 70 of file dx_spritedevicehelper.hxx.

References mpSurfaceProxyManager.

◆ init()

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

◆ isAccelerated()

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

Definition at line 177 of file dx_spritedevicehelper.cxx.

◆ notifySizeUpdate()

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

◆ resizeBackBuffer()

void dxcanvas::SpriteDeviceHelper::resizeBackBuffer ( const ::basegfx::B2ISize rNewSize)
private

Definition at line 196 of file dx_spritedevicehelper.cxx.

References mpBackBuffer.

◆ showBuffer()

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

Definition at line 165 of file dx_spritedevicehelper.cxx.

References SAL_WARN.

◆ switchBuffer()

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

Definition at line 171 of file dx_spritedevicehelper.cxx.

References SAL_WARN.

Member Data Documentation

◆ mpBackBuffer

DXSurfaceBitmapSharedPtr dxcanvas::SpriteDeviceHelper::mpBackBuffer
private

Definition at line 88 of file dx_spritedevicehelper.hxx.

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

◆ mpRenderModule

IDXRenderModuleSharedPtr dxcanvas::SpriteDeviceHelper::mpRenderModule
private

Our encapsulation interface to DirectX.

Definition at line 94 of file dx_spritedevicehelper.hxx.

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

◆ mpSpriteCanvas

SpriteCanvas* dxcanvas::SpriteDeviceHelper::mpSpriteCanvas
private

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

Definition at line 86 of file dx_spritedevicehelper.hxx.

Referenced by disposing().

◆ mpSurfaceProxyManager

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

Instance passing out HW textures.

Definition at line 91 of file dx_spritedevicehelper.hxx.

Referenced by disposing(), and getSurfaceProxy().


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