Krita Source Code Documentation
Loading...
Searching...
No Matches
KoVectorPatternBackground.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOVECTORPATTERNBACKGROUND_H
8#define KOVECTORPATTERNBACKGROUND_H
9
10#include <KoShapeBackground.h>
12#include <QSharedDataPointer>
13
14class KoShape;
15class QPointF;
16class QRectF;
17class QTransform;
18
19
21{
22public:
25
26 bool compareTo(const KoShapeBackground *other) const override;
27
30
36
37 void setReferenceRect(const QRectF &value);
38 QRectF referenceRect() const;
39
40 void setPatternTransform(const QTransform &value);
41 QTransform patternTransform() const;
42
44 QList<KoShape*> shapes() const;
45
46 void paint(QPainter &painter, const QPainterPath &fillPath) const override;
47 bool hasTransparency() const override;
48private:
49 class Private;
50 QSharedDataPointer<Private> d;
51};
52
53#endif // KOVECTORPATTERNBACKGROUND_H
float value(const T *src, size_t ch)
bool compareTo(const KoShapeBackground *other) const override
void setReferenceCoordinates(KoFlake::CoordinateSystem value)
void setContentCoordinates(KoFlake::CoordinateSystem value)
void setReferenceRect(const QRectF &value)
void setPatternTransform(const QTransform &value)
void setShapes(const QList< KoShape * > value)
KoFlake::CoordinateSystem contentCoordinates() const
QList< KoShape * > shapes() const
KoFlake::CoordinateSystem referenceCoordinates() const
bool hasTransparency() const override
Returns if the background has some transparency.
QSharedDataPointer< Private > d
void paint(QPainter &painter, const QPainterPath &fillPath) const override
Paints the background using the given fill path.