krita/ui
KisShapeLayer Class Reference
A KisShapeLayer contains any number of non-krita flakes, such as path shapes, text shapes and anything else people come up with. More...
#include <kis_shape_layer.h>

Public Slots | |
| void | selectionChanged () |
Signals | |
| void | selectionChanged (QList< KoShape * > shape) |
Public Member Functions | |
| KisShapeLayer (const KisShapeLayer &_rhs) | |
| KisShapeLayer (KoShapeContainer *parent, KoShapeControllerBase *shapeController, KisImageWSP img, const QString &name, quint8 opacity) | |
| virtual | ~KisShapeLayer () |
| bool | accept (KisNodeVisitor &) |
| void | addChild (KoShape *object) |
| bool | allowAsChild (KisNodeSP) const |
| KisNodeSP | clone () const |
| QIcon | icon () const |
| bool | isSelectable () const |
| bool | loadLayer (KoStore *store) |
| KisPaintDeviceSP | original () const |
| KisPaintDeviceSP | paintDevice () const |
| void | removeChild (KoShape *object) |
| QRect | repaintOriginal (KisPaintDeviceSP original, const QRect &rect) |
| bool | saveLayer (KoStore *store) const |
| void | setX (qint32) |
| void | setY (qint32) |
| KoShapeManager * | shapeManager () const |
| qint32 | x () const |
| qint32 | y () const |
Detailed Description
A KisShapeLayer contains any number of non-krita flakes, such as path shapes, text shapes and anything else people come up with.
The KisShapeLayer has a shapemanager and a canvas of its own. The canvas paints onto the projection, and the projection is what we render in Krita. This means that no matter how many views you have, you cannot have a different view on your shapes per view.
XXX: what about removing shapes?
Definition at line 52 of file kis_shape_layer.h.
Constructor & Destructor Documentation
| KisShapeLayer::KisShapeLayer | ( | KoShapeContainer * | parent, | |
| KoShapeControllerBase * | shapeController, | |||
| KisImageWSP | img, | |||
| const QString & | name, | |||
| quint8 | opacity | |||
| ) |
Definition at line 90 of file kis_shape_layer.cc.
| KisShapeLayer::KisShapeLayer | ( | const KisShapeLayer & | _rhs | ) |
Definition at line 132 of file kis_shape_layer.cc.
| KisShapeLayer::~KisShapeLayer | ( | ) | [virtual] |
Definition at line 155 of file kis_shape_layer.cc.
Member Function Documentation
| bool KisShapeLayer::accept | ( | KisNodeVisitor & | visitor | ) |
Definition at line 246 of file kis_shape_layer.cc.
| void KisShapeLayer::addChild | ( | KoShape * | object | ) |
Definition at line 182 of file kis_shape_layer.cc.
| bool KisShapeLayer::allowAsChild | ( | KisNodeSP | node | ) | const |
Definition at line 177 of file kis_shape_layer.cc.
| KisNodeSP KisShapeLayer::clone | ( | ) | const [inline] |
Definition at line 64 of file kis_shape_layer.h.
| QIcon KisShapeLayer::icon | ( | ) | const |
Definition at line 202 of file kis_shape_layer.cc.
| bool KisShapeLayer::isSelectable | ( | ) | const [inline] |
Definition at line 72 of file kis_shape_layer.h.
| bool KisShapeLayer::loadLayer | ( | KoStore * | store | ) |
Definition at line 350 of file kis_shape_layer.cc.
| KisPaintDeviceSP KisShapeLayer::original | ( | ) | const |
Definition at line 207 of file kis_shape_layer.cc.
| KisPaintDeviceSP KisShapeLayer::paintDevice | ( | ) | const |
Definition at line 212 of file kis_shape_layer.cc.
| void KisShapeLayer::removeChild | ( | KoShape * | object | ) |
Definition at line 192 of file kis_shape_layer.cc.
Definition at line 217 of file kis_shape_layer.cc.
| bool KisShapeLayer::saveLayer | ( | KoStore * | store | ) | const |
Definition at line 256 of file kis_shape_layer.cc.
| void KisShapeLayer::selectionChanged | ( | QList< KoShape * > | shape | ) | [signal] |
| void KisShapeLayer::selectionChanged | ( | ) | [slot] |
Definition at line 437 of file kis_shape_layer.cc.
| void KisShapeLayer::setX | ( | qint32 | x | ) |
Definition at line 234 of file kis_shape_layer.cc.
| void KisShapeLayer::setY | ( | qint32 | y | ) |
Definition at line 240 of file kis_shape_layer.cc.
| KoShapeManager * KisShapeLayer::shapeManager | ( | ) | const |
Definition at line 251 of file kis_shape_layer.cc.
| qint32 KisShapeLayer::x | ( | ) | const |
Definition at line 224 of file kis_shape_layer.cc.
| qint32 KisShapeLayer::y | ( | ) | const |
Definition at line 229 of file kis_shape_layer.cc.
The documentation for this class was generated from the following files:
