22#include <com/sun/star/rendering/XCustomSprite.hpp>
69 void init(
const css::geometry::RealSize2D& rSpriteSize,
73 bool bShowSpriteBounds );
85 void redraw(
bool& io_bSurfaceDirty )
const;
89 css::uno::Reference< css::rendering::XPolyPolygon2D >& xPoly )
const override;
Base class for an XSprite helper implementation - to be used in concert with CanvasCustomSpriteBase.
Helper class for canvas sprites.
bool needRedraw() const
Returns true, if the sprite really needs redraw.
void redraw(bool &io_bSurfaceDirty) const
Repaint sprite content via hardware to associated sprite canvas.
SpriteCanvasRef mpSpriteCanvas
DXSurfaceBitmapSharedPtr mpBitmap
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(css::uno::Reference< css::rendering::XPolyPolygon2D > &xPoly) const override
Called to convert an API polygon to a basegfx polygon.
SpriteHelper()
Create sprite helper.
void init(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rSpriteCanvas, const IDXRenderModuleSharedPtr &rRenderModule, const DXSurfaceBitmapSharedPtr &rBitmap, bool bShowSpriteBounds)
Late-init the sprite helper.
std::shared_ptr< DXSurfaceBitmap > DXSurfaceBitmapSharedPtr
std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr