Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickselectable_p.h
Go to the documentation of this file.
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKSELECTABLE_P_H
6
#
define
QQUICKSELECTABLE_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtQuick
/
qquickitem
.
h
>
20
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICK_EXPORT
QQuickSelectable
25
{
26
public
:
27
enum
class
CallBackFlag {
28
CancelSelection,
29
SelectionRectangleChanged
30
};
31
32
virtual
~QQuickSelectable();
33
34
virtual
QQuickItem *selectionPointerHandlerTarget()
const
= 0;
35
36
virtual
bool
hasSelection()
const
= 0;
37
virtual
bool
startSelection(
const
QPointF &pos, Qt::KeyboardModifiers modifiers) = 0;
38
virtual
void
setSelectionStartPos(
const
QPointF &pos) = 0;
39
virtual
void
setSelectionEndPos(
const
QPointF &pos) = 0;
40
virtual
void
clearSelection() = 0;
41
virtual
void
normalizeSelection() = 0;
42
43
virtual
QRectF selectionRectangle()
const
= 0;
44
virtual
QSizeF scrollTowardsPoint(
const
QPointF &pos,
const
QSizeF &step) = 0;
45
46
virtual
void
setCallback(std::function<
void
(CallBackFlag)> func) = 0;
47
};
48
49
QT_END_NAMESPACE
50
51
#
endif
QQuickSelectable
Definition
qquickselectable_p.h:25
qtdeclarative
src
quick
items
qquickselectable_p.h
Generated on
for Qt by
1.18.0