20#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_SLIDE_LAYER_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_SLIDE_LAYER_HXX
61 class Layer :
public std::enable_shared_from_this<Layer>
136 void setPriority( const ::basegfx::B1DRange& rPrioRange );
This class represents one layer of output on a Slide.
void updateBounds(ShapeSharedPtr const &rShape)
Update layer bound rect from shape bounds.
basegfx::B2DPolyRange maUpdateAreas
Layer()
Create non-background layer.
ViewLayerSharedPtr addView(const ViewSharedPtr &rNewView)
Add a view to this layer.
ViewLayerSharedPtr removeView(const ViewSharedPtr &rView)
Remove a view.
bool isUpdatePending() const
Whether any update ranges have been added.
void endUpdate()
Finish layer update.
bool isInsideUpdateArea(ShapeSharedPtr const &rShape) const
Check whether given shape is inside current update area.
static LayerSharedPtr createBackgroundLayer()
Create background layer.
bool commitBounds()
Commit collected layer bounds to ViewLayer.
basegfx::B2DRange maNewBounds
Layer & operator=(const Layer &)=delete
Forbid copy assignment.
void clearUpdateRanges()
Clear all registered update ranges.
void addUpdateRange(::basegfx::B2DRange const &rUpdateRange)
Add an area that needs update.
std::shared_ptr< LayerEndUpdate > EndUpdater
basegfx::B2DRange maBounds
void setShapeViews(ShapeSharedPtr const &rShape) const
Init shape with this layer's views.
void clearContent()
Clear whole layer content.
void setPriority(const ::basegfx::B1DRange &rPrioRange)
Change layer priority range.
ViewEntryVector maViewEntries
bool isBackgroundLayer() const
Predicate, whether this layer is the special background layer.
::std::vector< ViewEntry > ViewEntryVector
static LayerSharedPtr createLayer()
Create non-background layer.
EndUpdater beginUpdate()
Init layer update.
Layer(const Layer &)=delete
Forbid copy construction.
std::shared_ptr< View > ViewSharedPtr
std::shared_ptr< ViewLayer > ViewLayerSharedPtr
::std::weak_ptr< Layer > LayerWeakPtr
::std::shared_ptr< Layer > LayerSharedPtr
::std::shared_ptr< Shape > ShapeSharedPtr
ViewLayerSharedPtr mpViewLayer
const ViewLayerSharedPtr & getViewLayer() const
ViewEntry(ViewSharedPtr xView, ViewLayerSharedPtr xViewLayer)
const ViewSharedPtr & getView() const