Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeBackground.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2008 Jan Hambrecht <jaham@gmx.net>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#ifndef KOSHAPEBACKGROUND_H
8
#define KOSHAPEBACKGROUND_H
9
10
#include "kritaflake_export.h"
11
12
#include <QtGlobal>
13
14
class
QSizeF;
15
class
QPainter;
16
class
QPainterPath;
17
class
KoShapeSavingContext
;
18
24
class
KRITAFLAKE_EXPORT
KoShapeBackground
25
{
26
public
:
27
KoShapeBackground
();
28
virtual
~KoShapeBackground
();
29
31
virtual
void
paint
(QPainter &painter,
const
QPainterPath &fillPath)
const
= 0;
32
34
virtual
bool
hasTransparency()
const
;
35
36
virtual
bool
compareTo
(
const
KoShapeBackground
*other)
const
= 0;
37
38
virtual
explicit
operator
bool()
const
{
return
true
; }
39
40
};
41
42
#endif
// KOSHAPEBACKGROUND_H
KoShapeBackground
Definition
KoShapeBackground.h:25
KoShapeBackground::compareTo
virtual bool compareTo(const KoShapeBackground *other) const =0
KoShapeBackground::paint
virtual void paint(QPainter &painter, const QPainterPath &fillPath) const =0
Paints the background using the given fill path.
KoShapeSavingContext
Definition
KoShapeSavingContext.h:32
libs
flake
KoShapeBackground.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52