Krita

GroupShape.h
1/*
2 * SPDX-FileCopyrightText: 2017 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
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
20class KRITALIBKIS_EXPORT GroupShape : public Shape
21{
22 Q_OBJECT
23
24public:
25 explicit GroupShape(QObject *parent = 0);
26 GroupShape(KoShapeGroup *shape, QObject *parent = 0);
28public 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
The GroupShape class A group shape is a vector object with child shapes.
Definition GroupShape.h:21
The Shape class The shape class is a wrapper around Krita's vector objects.
Definition Shape.h:38
virtual QString type() const
type
Definition Shape.cpp:63
Q_SLOTSQ_SLOTS
const QObjectList & children() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.