46 using ::canvas::CanvasCustomSpriteHelper::init;
64 void init(
const css::geometry::RealSize2D& rSpriteSize,
65 const ::canvas::SpriteSurface::Reference& rOwningSpriteCanvas,
68 bool bShowSpriteBounds );
87 const ::basegfx::B2DPoint& rPos,
89 bool bBufferedUpdate )
const;
93 css::uno::Reference< css::rendering::XPolyPolygon2D >& xPoly )
const override;
100 mutable ::canvas::vcltools::VCLObject<BitmapEx>
maContent;
Base class for an XSprite helper implementation - to be used in concert with CanvasCustomSpriteBase.
Helper class for canvas sprites.
void init(const css::geometry::RealSize2D &rSpriteSize, const ::canvas::SpriteSurface::Reference &rOwningSpriteCanvas, const BackBufferSharedPtr &rBackBuffer, const BackBufferSharedPtr &rBackBufferMask, bool bShowSpriteBounds)
Late-init the sprite helper.
void redraw(OutputDevice &rOutDev, const ::basegfx::B2DPoint &rPos, bool &bSurfacesDirty, bool bBufferedUpdate) const
Repaint sprite content to associated sprite canvas.
mutable ::canvas::vcltools::VCLObject< BitmapEx > maContent
Cached bitmap for the current sprite content.
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(css::uno::Reference< css::rendering::XPolyPolygon2D > &xPoly) const override
Called to convert an API polygon to a basegfx polygon.
BackBufferSharedPtr mpBackBuffer
bool mbShowSpriteBounds
When true, line sprite corners in red.
BackBufferSharedPtr mpBackBufferMask
std::shared_ptr< BackBuffer > BackBufferSharedPtr