KoShapeLayer Class Reference

Provides arranging shapes into layers. More...

#include <KoShapeLayer.h>

Inheritance diagram for KoShapeLayer:

KoShapeContainer KoShape List of all members.

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.

Detailed Description

Provides arranging shapes into layers.

This makes it possible to have a higher key of a number of objects in a document. A layer is always invisible and unselectable.


Member Function Documentation

QRectF KoShapeLayer::boundingRect (  )  const [virtual]

Get the bounding box of the shape.

This includes the line width but not the shadow of the shape

Returns:
the bounding box of the shape

Reimplemented from KoShape.

bool KoShapeLayer::hitTest ( const QPointF &  position  )  const [virtual]

Check if the shape is hit on position.

Parameters:
position the position where the user clicked.
Returns:
true when it hits.

Reimplemented from KoShape.

bool KoShapeLayer::loadOdf ( const KoXmlElement element,
KoShapeLoadingContext context 
) [virtual]

Load a shape from odf.

Parameters:
context the KoShapeLoadingContext used for loading
element element which represents the shape in odf
Returns:
false if loading failed

Implements KoShape.


The documentation for this class was generated from the following files:
Generated on Sun Jul 20 22:37:16 2008 for libs/flake by  doxygen 1.4.7