Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_wrapped_random_accessor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_WRAPPED_RANDOM_ACCESSOR_H
8#define __KIS_WRAPPED_RANDOM_ACCESSOR_H
9
11#include "KisWraparoundAxis.h"
12
13
15{
16public:
18 qint32 offsetX, qint32 offsetY,
19 bool writable,
20 KisIteratorCompleteListener *completeListener,
21 const QRect &wrapRect,
22 const WrapAroundAxis wrapAroundModeAxis);
23
24 void moveTo(qint32 x, qint32 y) override;
25 qint32 numContiguousColumns(qint32 x) const override;
26 qint32 numContiguousRows(qint32 y) const override;
27 qint32 rowStride(qint32 x, qint32 y) const override;
28
29 qint32 x() const override;
30 qint32 y() const override;
31
32private:
36};
37
38#endif /* __KIS_WRAPPED_RANDOM_ACCESSOR_H */
WrapAroundAxis
KisWrappedRandomAccessor(KisTiledDataManager *ktm, qint32 offsetX, qint32 offsetY, bool writable, KisIteratorCompleteListener *completeListener, const QRect &wrapRect, const WrapAroundAxis wrapAroundModeAxis)
void moveTo(qint32 x, qint32 y) override
Move to a given x,y position, fetch tiles and data.
qint32 numContiguousColumns(qint32 x) const override
qint32 rowStride(qint32 x, qint32 y) const override
qint32 numContiguousRows(qint32 y) const override
The KisIteratorCompleteListener struct is a special interface for notifying the paint device that an ...