Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickdrawer_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKDRAWER_P_P_H
6#define QQUICKDRAWER_P_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 <QtQuickTemplates2/private/qquickdrawer_p.h>
20#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
21#include <QtQuickTemplates2/private/qquickvelocitycalculator_p_p.h>
22
24
26{
27 Q_DECLARE_PUBLIC(QQuickDrawer)
28
29public:
31 {
32 return drawer->d_func();
33 }
34
35 qreal offsetAt(const QPointF &point) const;
36 qreal positionAt(const QPointF &point) const;
37
39 void showDimmer() override;
40 void hideDimmer() override;
42
43 bool startDrag(QEvent *event);
44 bool grabMouse(QQuickItem *item, QMouseEvent *event);
45#if QT_CONFIG(quicktemplates2_multitouch)
47#endif
48 bool blockInput(QQuickItem *item, const QPointF &point) const override;
49
50 bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp) override;
51 bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp) override;
52 bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp) override;
54
57
58 QQuickPopup::PopupType resolvedPopupType() const override;
59
60 bool setEdge(Qt::Edge edge);
61 Qt::Edge effectiveEdge() const;
62 bool isWithinDragMargin(const QPointF &point) const;
63
70};
71
72QT_END_NAMESPACE
73
74#endif // QQUICKDRAWER_P_P_H
void showDimmer() override
void handleUngrab() override
bool prepareEnterTransition() override
bool handlePress(QQuickItem *item, const QPointF &point, ulong timestamp) override
void resizeDimmer() override
bool setEdge(Qt::Edge edge)
bool isWithinDragMargin(const QPointF &point) const
qreal positionAt(const QPointF &point) const
QQuickPopup::PopupType resolvedPopupType() const override
QQuickPopupPositioner * getPositioner() override
bool grabMouse(QQuickItem *item, QMouseEvent *event)
bool handleRelease(QQuickItem *item, const QPointF &point, ulong timestamp) override
bool startDrag(QEvent *event)
Qt::Edge effectiveEdge() const
bool blockInput(QQuickItem *item, const QPointF &point) const override
void hideDimmer() override
bool handleMove(QQuickItem *item, const QPointF &point, ulong timestamp) override
bool prepareExitTransition() override
QQuickVelocityCalculator velocityCalculator
static bool keepGrab(QQuickItem *item)
static QList< QQuickStateAction > prepareTransition(QQuickDrawer *drawer, QQuickTransition *transition, qreal to)
static const qreal openCloseVelocityThreshold