Krita Source Code Documentation
Loading...
Searching...
No Matches
KoViewTransformStillPoint.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOVIEWTRANSFORMSTILLPOINT_H
8#define KOVIEWTRANSFORMSTILLPOINT_H
9
10#include <kritaflake_export.h>
11#include <QPointF>
12#include <utility>
13
15
33class KRITAFLAKE_EXPORT KoViewTransformStillPoint : public std::pair<QPointF, QPointF>
34{
35public:
37 KoViewTransformStillPoint(const QPointF &docPoint, const QPointF &viewPoint);
38 KoViewTransformStillPoint(const std::pair<QPointF, QPointF> &rhs);
39
44
45 QPointF docPoint() const;
46 QPointF viewPoint() const;
47};
48
49KRITAFLAKE_EXPORT QDebug operator<<(QDebug dbg, const KoViewTransformStillPoint &point);
50
51#endif // KOVIEWTRANSFORMSTILLPOINT_H
KRITAFLAKE_EXPORT QDebug operator<<(QDebug dbg, const KoViewTransformStillPoint &point)
KoViewTransformStillPoint(const KoViewTransformStillPoint &rhs)=default
KoViewTransformStillPoint & operator=(KoViewTransformStillPoint &&rhs)=default
KoViewTransformStillPoint(KoViewTransformStillPoint &&rhs)=default
KoViewTransformStillPoint()=default
KoViewTransformStillPoint & operator=(const KoViewTransformStillPoint &rhs)=default