Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoGradientBackground.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 34 | public: | |||
---|---|---|---|---|---|
42 | * Create new gradient background from the given gradient. | 42 | * Create new gradient background from the given gradient. | ||
43 | * A clone of the given gradient is used. | 43 | * A clone of the given gradient is used. | ||
44 | */ | 44 | */ | ||
45 | explicit KoGradientBackground(const QGradient &gradient, const QTransform &matrix = QTransform()); | 45 | explicit KoGradientBackground(const QGradient &gradient, const QTransform &matrix = QTransform()); | ||
46 | 46 | | |||
47 | /// Destroys the background | 47 | /// Destroys the background | ||
48 | virtual ~KoGradientBackground(); | 48 | virtual ~KoGradientBackground(); | ||
49 | 49 | | |||
50 | bool compareTo(const KoShapeBackground *other) const override; | ||||
51 | | ||||
50 | /// Sets the transform matrix | 52 | /// Sets the transform matrix | ||
51 | void setTransform(const QTransform &matrix); | 53 | void setTransform(const QTransform &matrix); | ||
52 | 54 | | |||
53 | /// Returns the transform matrix | 55 | /// Returns the transform matrix | ||
54 | QTransform transform() const; | 56 | QTransform transform() const; | ||
55 | 57 | | |||
56 | /** | 58 | /** | ||
57 | * Sets a new gradient. | 59 | * Sets a new gradient. | ||
Show All 20 Lines |