Krita

GroupShape.h
1 /*
2  * SPDX-FileCopyrightText: 2017 Wolthera van Hövell tot Westerflier <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 #ifndef LIBKIS_GROUPSHAPE_H
7 #define LIBKIS_GROUPSHAPE_H
8 
9 #include "kritalibkis_export.h"
10 #include "libkis.h"
11 #include "Shape.h"
12 #include <kis_types.h>
13 #include <KoShapeGroup.h>
14 
15 /**
16  * @brief The GroupShape class
17  * A group shape is a vector object with child shapes.
18  */
19 
20 class KRITALIBKIS_EXPORT GroupShape : public Shape
21 {
22  Q_OBJECT
23 
24 public:
25  explicit GroupShape(QObject *parent = 0);
26  GroupShape(KoShapeGroup *shape, QObject *parent = 0);
27  ~GroupShape();
28 public Q_SLOTS:
29 
30  /**
31  * @brief type returns the type.
32  * @return "groupshape"
33  */
34  QString type() const override;
35 
36  /**
37  * @brief children
38  * @return the child shapes of this group shape.
39  */
41 };
42 
43 #endif // LIBKIS_GROUPSHAPE_H
Q_SLOTSQ_SLOTS
The Shape class The shape class is a wrapper around Krita's vector objects.
Definition: Shape.h:37
virtual QString type() const
type
Definition: Shape.cpp:63
The GroupShape class A group shape is a vector object with child shapes.
Definition: GroupShape.h:20
const QObjectList & children() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 04:12:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.