1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSELECTABLE_P_H
5#define QQUICKSELECTABLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/qquickitem.h>
19#include <QtCore/private/qglobal_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class Q_QUICK_PRIVATE_EXPORT QQuickSelectable
24{
25public:
26 virtual QQuickItem *selectionPointerHandlerTarget() const = 0;
27
28 virtual bool startSelection(const QPointF &pos) = 0;
29 virtual void setSelectionStartPos(const QPointF &pos) = 0;
30 virtual void setSelectionEndPos(const QPointF &pos) = 0;
31 virtual void clearSelection() = 0;
32 virtual void normalizeSelection() = 0;
33
34 virtual QRectF selectionRectangle() const = 0;
35 virtual QSizeF scrollTowardsSelectionPoint(const QPointF &pos, const QSizeF &step) = 0;
36};
37
38QT_END_NAMESPACE
39
40#endif
41

source code of qtdeclarative/src/quick/items/qquickselectable_p.h