20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATEDSPRITE_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATEDSPRITE_HXX
64 const ::basegfx::B2DSize& rSpriteSizePixel,
74 void resize( const ::basegfx::B2DSize& rSpriteSizePixel );
108 void movePixel( const ::basegfx::B2DPoint& rNewPos );
122 void clip( const ::basegfx::B2DPolyPolygon& rClip );
136 void transform( const ::basegfx::B2DHomMatrix& rTransform );
148 ::std::optional< ::basegfx::B2DPolyPolygon >
maClip;
This class provides the sprite for animated shapes.
::cppcanvas::CustomSpriteSharedPtr mpSprite
::basegfx::B2DSize maContentPixelOffset
ViewLayerSharedPtr mpViewLayer
void setPixelOffset(const ::basegfx::B2DSize &rPixelOffset)
Set an offset for the content output in pixel.
AnimatedSprite & operator=(const AnimatedSprite &)=delete
void show()
Show the sprite.
void resize(const ::basegfx::B2DSize &rSpriteSizePixel)
Resize the sprite.
void movePixel(const ::basegfx::B2DPoint &rNewPos)
Move the sprite in device pixel space.
::cppcanvas::CanvasSharedPtr getContentCanvas() const
Query the content canvas for the current sprite.
void transform(const ::basegfx::B2DHomMatrix &rTransform)
Set a sprite transformation.
AnimatedSprite(const AnimatedSprite &)=delete
void setAlpha(double rAlpha)
Set the alpha value of the sprite.
::std::optional< ::basegfx::B2DPoint > maPosPixel
AnimatedSprite(ViewLayerSharedPtr xViewLayer, const ::basegfx::B2DSize &rSpriteSizePixel, double nSpritePrio)
Create a new AnimatedSprite, for the given metafile shape.
void hide()
Hide the sprite.
::basegfx::B2DSize maEffectiveSpriteSizePixel
void clip()
Clears a sprite clip.
::std::optional< ::basegfx::B2DPolyPolygon > maClip
std::shared_ptr< ::cppcanvas::CustomSprite > CustomSpriteSharedPtr
std::shared_ptr< Canvas > CanvasSharedPtr
std::shared_ptr< ViewLayer > ViewLayerSharedPtr
::std::shared_ptr< AnimatedSprite > AnimatedSpriteSharedPtr