19#include "kritaflake_export.h"
22class KoSelectionPrivate;
46 void paint(QPainter &painter)
const override;
47 void setSize(
const QSizeF &size)
override;
48 QSizeF
size()
const override;
112 KoShape *firstSelectedShape()
const;
115 bool isSelected(
const KoShape *shape)
const;
120 bool hitTest(
const QPointF &position)
const override;
149 QSharedDataPointer<Private>
d;
void currentLayerChanged(const KoShapeLayer *layer)
emitted when the current layer is changed
void selectionChanged()
emitted when the selection is changed
QSharedDataPointer< 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.
virtual void paint(QPainter &painter) const =0
Paint the shape fill The class extending this one is responsible for painting itself....
ChangeType
Used by shapeChanged() to select which change was made.
virtual bool hitTest(const QPointF &position) const
Check if the shape is hit on position.
virtual void setSize(const QSizeF &size)
Resize the shape.
virtual void notifyShapeChanged(ChangeType type, KoShape *shape)=0