|
Krita Source Code Documentation
|
#include <KoShapeContainer.h>
Public Member Functions | |
| void | addShape (KoShape *shape) |
| void | removeShape (KoShape *shape) |
| ShapeInterface (KoShapeContainer *_q) | |
Protected Attributes | |
| KoShapeContainer * | q |
A special interface for KoShape to use during setParent call. Don't use these method directly for managing shapes hierarchy! Use shape->setParent() instead.
Definition at line 202 of file KoShapeContainer.h.
| KoShapeContainer::ShapeInterface::ShapeInterface | ( | KoShapeContainer * | _q | ) |
Definition at line 175 of file KoShapeContainer.cpp.
Add a child to this container.
This container will NOT take over ownership of the shape. The caller or those creating the shape is responsible to delete it if not needed any longer.
| shape | the child to be managed in the container. |
Definition at line 180 of file KoShapeContainer.cpp.
References KoShapeContainer::d, KIS_SAFE_ASSERT_RECOVER_RETURN, KoShape::parent(), removeShape(), KoShapeContainer::shapeInterface, and KoShapeContainer::shapes().
Remove a child to be completely separated from the container.
The shape will only be removed from this container but not be deleted.
| shape | the child to be removed. |
Definition at line 203 of file KoShapeContainer.cpp.
References KoShape::ChildChanged, KoShapeContainerModel::childChanged(), KoShapeContainer::d, KIS_SAFE_ASSERT_RECOVER_RETURN, KoShapeContainer::model, and KoShape::parent().
|
protected |
Definition at line 225 of file KoShapeContainer.h.