#include <KoShapeLayer.h>
Inheritance diagram for KoShapeLayer:

Public Member Functions | |
| KoShapeLayer () | |
| The default constructor. | |
| virtual void | paintComponent (QPainter &, const KoViewConverter &) |
| empty implementation, as the layer itself is not visible | |
| bool | hitTest (const QPointF &position) const |
| Check if the shape is hit on position. | |
| virtual QRectF | boundingRect () const |
| Get the bounding box of the shape. | |
| virtual void | saveOdf (KoShapeSavingContext &context) const |
| reimplemented from KoShape | |
| virtual bool | loadOdf (const KoXmlElement &element, KoShapeLoadingContext &context) |
| Load a shape from odf. | |
This makes it possible to have a higher key of a number of objects in a document. A layer is always invisible and unselectable.
| QRectF KoShapeLayer::boundingRect | ( | ) | const [virtual] |
Get the bounding box of the shape.
This includes the line width but not the shadow of the shape
Reimplemented from KoShape.
| bool KoShapeLayer::hitTest | ( | const QPointF & | position | ) | const [virtual] |
Check if the shape is hit on position.
| position | the position where the user clicked. |
Reimplemented from KoShape.
| bool KoShapeLayer::loadOdf | ( | const KoXmlElement & | element, | |
| KoShapeLoadingContext & | context | |||
| ) | [virtual] |
Load a shape from odf.
| context | the KoShapeLoadingContext used for loading | |
| element | element which represents the shape in odf |
Implements KoShape.
1.4.7