13#include "kritaflake_export.h"
17class KoShapeGroupPrivate;
47 bool hitTest(
const QPointF &position)
const override;
48 QSizeF
size()
const override;
49 void setSize(
const QSizeF &size)
override;
64 void invalidateSizeCache();
70 void tryUpdateCachedSize()
const;
75 QScopedPointer<Private>
d;
virtual void paintComponent(QPainter &painter) const =0
Paint the component Implement this method to allow the shape to paint itself, just like the KoShape::...
void shapeChanged(ChangeType type, KoShape *shape=0) override
QScopedPointer< Private > d
virtual QSizeF size() const
Get the size of the shape in pt.
virtual QRectF outlineRect() const
virtual QRectF boundingRect() const
Get the bounding box of the shape.
ChangeType
Used by shapeChanged() to select which change was made.
virtual KoShape * cloneShape() const
creates a deep copy of the shape or shape's subtree
virtual bool hitTest(const QPointF &position) const
Check if the shape is hit on position.
virtual void setSize(const QSizeF &size)
Resize the shape.