27#include <rtl/math.hxx>
43 const std::shared_ptr<canvas::ISurfaceProxyManager>& rSurfaceProxy,
44 bool bShowSpriteBounds ) :
49 "CanvasCustomSprite::CanvasCustomSprite(): Invalid sprite canvas" );
51 mpSurface = std::make_shared<DXSurfaceBitmap>(
53 ::canvas::tools::roundUp( rSpriteSize.Width ),
54 ::canvas::tools::roundUp( rSpriteSize.Height )),
74 ::osl::MutexGuard aGuard(
m_aMutex );
85 return "DXCanvas.CanvasCustomSprite";
95 return {
"com.sun.star.rendering.CanvasCustomSprite" };
100 ::osl::MutexGuard aGuard(
m_aMutex );
CanvasHelper maCanvasHelper
SpriteHelper maSpriteHelper
virtual void disposeThis() override
Object is being disposed.
CanvasCustomSprite(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice, const IDXRenderModuleSharedPtr &rRenderModule, const std::shared_ptr< canvas::ISurfaceProxyManager > &rSurfaceProxy, bool bShowSpriteBounds)
Create a custom sprite.
virtual void disposeThis() override
Object is being disposed.
SpriteCanvasRef mpSpriteCanvas
MUST hold here, too, since BitmapCanvasHelper only contains a raw pointer (without refcounting)
DXSurfaceBitmapSharedPtr mpSurface
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void redraw() const override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define ENSURE_OR_THROW(c, m)
sal::systools::COMReference< surface_type > mpSurface
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr
const cppcanvas::SpriteCanvasSharedPtr mpSpriteCanvas