Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_random_sub_accessor.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 *
4 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_RANDOM_SUB_ACCESSOR_H
10#define KIS_RANDOM_SUB_ACCESSOR_H
11
12
14#include "kis_types.h"
15#include <kritaimage_export.h>
16#include "kis_shared.h"
17
23class KRITAIMAGE_EXPORT KisRandomSubAccessor : public KisShared
24{
25public:
31 void sampledOldRawData(quint8* dst);
32
36 void sampledRawData(quint8* dst);
37
38 inline void moveTo(qreal x, qreal y) {
39 m_currentPoint.setX(x); m_currentPoint.setY(y);
40 }
41 inline void moveTo(const QPointF& p) {
42 m_currentPoint = p;
43 }
44
45private:
49};
50
51#endif
const Params2D p
KisRandomConstAccessorSP m_randomAccessor
void moveTo(const QPointF &p)
void moveTo(qreal x, qreal y)