17 bool hitTest(QPointF global_coord, qreal tolerance)
const override;
19 bool hitTest(QRectF global_coord_rect)
const override;
21 void paint(QPainter *painter)
const override;
25 const QPixmap *
pixmap()
const;
27 QImage &
image()
const;
32 void calcBoundingBox()
const override;
34 unique_ptr<QPixmap> bitmap_;
35 mutable QImage tinted_image_;
36 mutable std::uintptr_t tinted_signature;
Definition: bitmap-shape.h:7
Shape::Type type() const override
Definition: bitmap-shape.cpp:92
BitmapShape()
Definition: bitmap-shape.cpp:9
void paint(QPainter *painter) const override
Definition: bitmap-shape.cpp:77
const QPixmap * pixmap() const
Definition: bitmap-shape.cpp:94
ShapePtr clone() const override
Definition: bitmap-shape.cpp:87
QImage & image() const
Definition: bitmap-shape.cpp:53
bool hitTest(QPointF global_coord, qreal tolerance) const override
Definition: bitmap-shape.cpp:33
Save and load documents as binary format.
Definition: document-serializer.h:18
A base class for shape objects that contains transform and parent information.
Definition: shape.h:17
Type
Definition: shape.h:19
shared_ptr< Shape > ShapePtr
Definition: shape.h:137