blob: c31249e5c10788047a5369f19183b26857d92102 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QtGlobal>
QT_BEGIN_NAMESPACE
class QPointF;
QT_END_NAMESPACE
namespace qmt {
class IWindable
{
public:
virtual ~IWindable() { }
virtual QPointF grabHandle(int index) = 0;
virtual void insertHandle(int beforeIndex, const QPointF &pos, double rasterWidth, double rasterHeight) = 0;
virtual void deleteHandle(int index) = 0;
virtual void setHandlePos(int index, const QPointF &pos) = 0;
virtual void dropHandle(int index, bool extraSnap, double rasterWidth, double rasterHeight) = 0;
};
} // namespace qmt
|