65 void init(
const css::geometry::RealSize2D& rSpriteSize,
70 void setSurface( const ::cairo::SurfaceSharedPtr& pBufferSurface );
86 void redraw( const ::cairo::CairoSharedPtr& pCairo,
87 const ::basegfx::B2DPoint& rPos,
89 bool bBufferedUpdate )
const;
93 css::uno::Reference< css::rendering::XPolyPolygon2D >& xPoly )
const override;
Helper class for canvas sprites.
void init(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rSpriteCanvas)
Late-init the sprite helper.
void setSurface(const ::cairo::SurfaceSharedPtr &pBufferSurface)
SpriteCanvasRef mpSpriteCanvas
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(css::uno::Reference< css::rendering::XPolyPolygon2D > &xPoly) const override
Called to convert an API polygon to a basegfx polygon.
void redraw(const ::cairo::CairoSharedPtr &pCairo, const ::basegfx::B2DPoint &rPos, bool &bSurfacesDirty, bool bBufferedUpdate) const
Repaint sprite content to associated sprite canvas.
::cairo::SurfaceSharedPtr mpBufferSurface
SpriteHelper()
Create sprite helper.
Base class for an XSprite helper implementation - to be used in concert with CanvasCustomSpriteBase.
std::shared_ptr< Surface > SurfaceSharedPtr