61 void init(
const css::geometry::RealSize2D& rSpriteSize,
77 const css::uno::Reference< css::rendering::XBitmap >& xBitmap,
78 const css::rendering::ViewState& viewState,
79 const css::rendering::RenderState& renderState );
85 const css::geometry::RealPoint2D& aNewPos,
86 const css::rendering::ViewState& viewState,
87 const css::rendering::RenderState& renderState );
89 const css::geometry::AffineMatrix2D& aTransformation );
91 const css::uno::Reference< css::rendering::XPolyPolygon2D >& aClip );
98 bool isAreaUpdateOpaque( const ::basegfx::B2DRange& rUpdateArea )
const;
113 ::basegfx::B2DRange getUpdateArea( const ::basegfx::B2DRange& rUntransformedSpriteBounds )
const;
130 const css::uno::Reference<
131 css::rendering::XPolyPolygon2D >&
getClip()
const {
return mxClipPoly; }
156 css::uno::Reference< css::rendering::XPolyPolygon2D >& xPoly )
const = 0;
190 css::uno::Reference< css::rendering::XPolyPolygon2D >
mxClipPoly;
geometry::RealPoint2D maPosition
FILE * init(int, char **)
Base class for an XSprite helper implementation - to be used in concert with CanvasCustomSpriteBase.
bool isContentFullyOpaque() const
Returns true, if sprite content bitmap is fully opaque.
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(css::uno::Reference< css::rendering::XPolyPolygon2D > &xPoly) const =0
Called to convert an API polygon to a basegfx polygon.
void transformUpdated() const
Notifies that caller is again in sync with current transformation.
SpriteSurface::Reference mpSpriteCanvas
Owning sprite canvas.
bool mbTransformDirty
True, iff maTransform has changed.
bool mbIsContentFullyOpaque
Redraw speedup.
double getPriority() const
const css::uno::Reference< css::rendering::XPolyPolygon2D > & getClip() const
Retrieve current clip.
bool mbIsCurrClipRectangle
If true, denotes that the current sprite clip is a true rectangle, i.e.
bool isActive() const
Retrieve current activation state.
const ::basegfx::B2DHomMatrix & getTransformation() const
CanvasCustomSpriteHelper(const CanvasCustomSpriteHelper &)=delete
css::uno::Reference< css::rendering::XPolyPolygon2D > mxClipPoly
bool hasTransformChanged() const
Returns true, if transformation has changed since last transformUpdated() call.
::basegfx::B2DHomMatrix maTransform
::basegfx::B2DVector maSize
CanvasCustomSpriteHelper & operator=(const CanvasCustomSpriteHelper &)=delete
::basegfx::B2DPoint maPosition
::basegfx::B2DRange maCurrClipBounds
Currently active clip area.
virtual ~CanvasCustomSpriteHelper()
const ::basegfx::B2DPoint & getPosPixel() const
double getAlpha() const
Retrieve current alpha value.
const ::basegfx::B2DVector & getSizePixel() const
::basegfx::B2ISize maSize