Krita Source Code Documentation
Loading...
Searching...
No Matches
TransparencyMask.h
Go to the documentation of this file.
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_TRANSPARENCYMASK_H
7#define LIBKIS_TRANSPARENCYMASK_H
8
9#include <QObject>
10#include "Node.h"
11
12#include <kis_types.h>
13
14#include "kritalibkis_export.h"
15#include "libkis.h"
16
23class KRITALIBKIS_EXPORT TransparencyMask : public Node
24{
25 Q_OBJECT
26 Q_DISABLE_COPY(TransparencyMask)
27
28public:
29 explicit TransparencyMask(KisImageSP image, QString name, QObject *parent = 0);
30 explicit TransparencyMask(KisImageSP image, KisTransparencyMaskSP mask, QObject *parent = 0);
31 ~TransparencyMask() override;
32public Q_SLOTS:
33
43 virtual QString type() const override;
44
45 Selection *selection() const;
46
47 void setSelection(Selection *selection);
48};
49
50#endif // LIBKIS_TRANSPARENCYMASK_H
51
Definition Node.h:24
friend class TransparencyMask
Definition Node.h:705
virtual QString type() const
type Krita has several types of nodes, split in layers and masks. Group layers can contain other laye...
Definition Node.cpp:463
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...