22#include <com/sun/star/rendering/XSpriteCanvas.hpp>
23#include <com/sun/star/rendering/XIntegerBitmap.hpp>
48 const std::shared_ptr<canvas::ISurfaceProxyManager>& rSurfaceProxy,
50 const ::basegfx::B2ISize& rOutputOffset );
58 const css::uno::Reference< css::rendering::XAnimation >& animation );
62 const css::uno::Sequence<
64 css::rendering::XBitmap > >& animationBitmaps,
69 const css::geometry::RealSize2D& spriteSize );
73 const css::uno::Reference< css::rendering::XSprite >& original );
88 bool updateScreen( const ::basegfx::B2IRectangle& rCurrArea,
90 bool& io_bSurfaceDirty );
116 void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
117 const ::basegfx::B2DRange& rMoveEnd,
118 const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
120 void opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
121 const std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
124 const std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
This class manages smooth SpriteCanvas updates.
Helper class for basic canvas functionality.
css::uno::Reference< css::rendering::XAnimatedSprite > createSpriteFromAnimation(const css::uno::Reference< css::rendering::XAnimation > &animation)
void disposing()
Dispose all internal references.
std::shared_ptr< canvas::ISurfaceProxyManager > mpSurfaceProxy
void init(SpriteCanvas &rParent, ::canvas::SpriteRedrawManager &rManager, const IDXRenderModuleSharedPtr &rRenderModule, const std::shared_ptr< canvas::ISurfaceProxyManager > &rSurfaceProxy, const DXSurfaceBitmapSharedPtr &rBackBuffer, const ::basegfx::B2ISize &rOutputOffset)
void genericUpdate(const ::basegfx::B2DRange &rTotalArea, const std::vector< ::canvas::Sprite::Reference > &rSortedUpdateSprites)
css::uno::Reference< css::rendering::XAnimatedSprite > createSpriteFromBitmaps(const css::uno::Sequence< css::uno::Reference< css::rendering::XBitmap > > &animationBitmaps, sal_Int8 interpolationMode)
void backgroundPaint(const ::basegfx::B2DRange &rUpdateRect)
Gets called for simple background repaints.
DXSurfaceBitmapSharedPtr mpBackBuffer
Backbuffer, contains the static canvas render output.
bool updateScreen(const ::basegfx::B2IRectangle &rCurrArea, bool bUpdateAll, bool &io_bSurfaceDirty)
Actually perform the screen update.
mutable::basegfx::B2IRange maScrapRect
Completely temporary rect storage (used by sprite repaint)
void opaqueUpdate(const ::basegfx::B2DRange &rTotalArea, const std::vector< ::canvas::Sprite::Reference > &rSortedUpdateSprites)
css::uno::Reference< css::rendering::XSprite > createClonedSprite(const css::uno::Reference< css::rendering::XSprite > &original)
IDXRenderModuleSharedPtr mpRenderModule
DX device, handling all low-level rendering.
bool mbShowSpriteBounds
When true, show small bound rects around each sprite.
SpriteCanvas * mpSpriteSurface
For generating sprites.
void scrollUpdate(const ::basegfx::B2DRange &rMoveStart, const ::basegfx::B2DRange &rMoveEnd, const ::canvas::SpriteRedrawManager::UpdateArea &rUpdateArea)
Gets called when area can be handled by scrolling.
mutable::basegfx::B2IRange maUpdateRect
Completely temporary rect storage (used by sprite repaint)
css::uno::Reference< css::rendering::XCustomSprite > createCustomSprite(const css::geometry::RealSize2D &spriteSize)
::canvas::SpriteRedrawManager * mpRedrawManager
Set from the SpriteCanvas: instance coordinating sprite redraw.
Product of this component's factory.
std::shared_ptr< DXSurfaceBitmap > DXSurfaceBitmapSharedPtr
std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr