Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeAnchor::PlacementStrategy Class Referenceabstract

#include <KoShapeAnchor.h>

Public Member Functions

virtual void detachFromModel ()=0
 
 PlacementStrategy ()
 
virtual void updateContainerModel ()=0
 
virtual ~PlacementStrategy ()
 

Detailed Description

This class is an interface that positions the shape linked to text anchor

Definition at line 57 of file KoShapeAnchor.h.

Constructor & Destructor Documentation

◆ PlacementStrategy()

KoShapeAnchor::PlacementStrategy::PlacementStrategy ( )
inline

Definition at line 59 of file KoShapeAnchor.h.

59{};

◆ ~PlacementStrategy()

virtual KoShapeAnchor::PlacementStrategy::~PlacementStrategy ( )
inlinevirtual

Definition at line 60 of file KoShapeAnchor.h.

60{};

Member Function Documentation

◆ detachFromModel()

virtual void KoShapeAnchor::PlacementStrategy::detachFromModel ( )
pure virtual

Reparent the anchored shape to not have a parent shape container (and model)

◆ updateContainerModel()

virtual void KoShapeAnchor::PlacementStrategy::updateContainerModel ( )
pure virtual

Reparent the anchored shape under an appropriate shape container (and model)

If needed, it changes the parent KoShapeContainerModel and KoShapeContainer of the anchored shape.


The documentation for this class was generated from the following file: