summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/viewlayer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/inc/viewlayer.hxx')
-rw-r--r--slideshow/source/inc/viewlayer.hxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/slideshow/source/inc/viewlayer.hxx b/slideshow/source/inc/viewlayer.hxx
index 0b701d472b1e..a3a331a1666e 100644
--- a/slideshow/source/inc/viewlayer.hxx
+++ b/slideshow/source/inc/viewlayer.hxx
@@ -31,11 +31,14 @@ namespace basegfx
class B2DVector;
class B2DHomMatrix;
class B2DPolyPolygon;
+ typedef B2DVector B2DSize;
}
namespace cppcanvas
{
class Canvas;
class CustomSprite;
+ typedef std::shared_ptr< Canvas > CanvasSharedPtr;
+ typedef std::shared_ptr< ::cppcanvas::CustomSprite > CustomSpriteSharedPtr;
}
@@ -46,6 +49,7 @@ namespace slideshow
namespace internal
{
class View;
+ typedef std::shared_ptr< View > ViewSharedPtr;
class ViewLayer
{
@@ -57,14 +61,14 @@ namespace slideshow
@return true, if this layer displays on the given
view.
*/
- virtual bool isOnView(std::shared_ptr<View> const& rView) const = 0;
+ virtual bool isOnView(ViewSharedPtr const& rView) const = 0;
/** Get the associated canvas of this layer.
The canvas returned by this method must not change, as
long as this object is alive.
*/
- virtual std::shared_ptr< cppcanvas::Canvas > getCanvas() const = 0;
+ virtual cppcanvas::CanvasSharedPtr getCanvas() const = 0;
/** Clear the clipped view layer area
@@ -99,9 +103,9 @@ namespace slideshow
@return the sprite, or NULL on failure (or if this
canvas does not support sprites).
*/
- virtual std::shared_ptr< cppcanvas::CustomSprite >
- createSprite( const basegfx::B2DVector& rSpriteSizePixel,
- double nPriority ) const = 0;
+ virtual cppcanvas::CustomSpriteSharedPtr
+ createSprite( const basegfx::B2DSize& rSpriteSizePixel,
+ double nPriority ) const = 0;
/** Set the layer priority range