LibreOffice Module canvas (master) 1
|
#include <dx_spritedevicehelper.hxx>
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 IDXRenderModuleSharedPtr & | getRenderModule () const |
const DXSurfaceBitmapSharedPtr & | getBackBuffer () 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 DeviceHelper & | operator= (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 | |
SpriteCanvas * | mpSpriteCanvas |
Pointer to sprite canvas (owner of this helper), needed to create bitmaps. More... | |
DXSurfaceBitmapSharedPtr | mpBackBuffer |
std::shared_ptr< canvas::ISurfaceProxyManager > | mpSurfaceProxyManager |
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 |
Definition at line 37 of file dx_spritedevicehelper.hxx.
dxcanvas::SpriteDeviceHelper::SpriteDeviceHelper | ( | ) |
Definition at line 45 of file dx_spritedevicehelper.cxx.
References mpSpriteCanvas.
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 159 of file dx_spritedevicehelper.cxx.
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.
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.
|
inline |
Definition at line 69 of file dx_spritedevicehelper.hxx.
References mpBackBuffer.
|
private |
Definition at line 206 of file dx_spritedevicehelper.cxx.
References mpRenderModule.
|
inline |
Definition at line 68 of file dx_spritedevicehelper.hxx.
References mpRenderModule.
|
inline |
Definition at line 70 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 177 of file dx_spritedevicehelper.cxx.
void dxcanvas::SpriteDeviceHelper::notifySizeUpdate | ( | const css::awt::Rectangle & | rBounds | ) |
|
private |
Definition at line 196 of file dx_spritedevicehelper.cxx.
References mpBackBuffer.
bool dxcanvas::SpriteDeviceHelper::showBuffer | ( | bool | bIsVisible, |
bool | bUpdateAll | ||
) |
Definition at line 165 of file dx_spritedevicehelper.cxx.
References SAL_WARN.
bool dxcanvas::SpriteDeviceHelper::switchBuffer | ( | bool | bIsVisible, |
bool | bUpdateAll | ||
) |
Definition at line 171 of file dx_spritedevicehelper.cxx.
References SAL_WARN.
|
private |
Definition at line 88 of file dx_spritedevicehelper.hxx.
Referenced by disposing(), getBackBuffer(), and resizeBackBuffer().
|
private |
Our encapsulation interface to DirectX.
Definition at line 94 of file dx_spritedevicehelper.hxx.
Referenced by disposing(), dumpScreenContent(), getHwnd(), and getRenderModule().
|
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().
|
private |
Instance passing out HW textures.
Definition at line 91 of file dx_spritedevicehelper.hxx.
Referenced by disposing(), and getSurfaceProxy().