Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRenderedDab.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISRENDEREDDAB_H
8#define KISRENDEREDDAB_H
9
10#include "kis_types.h"
12
14{
17 : device(_device),
18 offset(_device->bounds().topLeft())
19 {
20 }
21
22 KisRenderedDab(const KisRenderedDab &/*rhs*/) = default;
23
25 QPoint offset;
26
30
31 inline QRect realBounds() const {
32 return QRect(offset, device->bounds().size());
33 }
34};
35
36#endif // KISRENDEREDDAB_H
const qreal OPACITY_OPAQUE_F
const qreal OPACITY_TRANSPARENT_F
#define bounds(x, a, b)
KisRenderedDab(const KisRenderedDab &)=default
KisRenderedDab(KisFixedPaintDeviceSP _device)
KisFixedPaintDeviceSP device
QRect realBounds() const