Qt 6.x
The Qt SDK
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
4#ifndef QQUICKDRAWER_P_P_H
5#define QQUICKDRAWER_P_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 <QtQuickTemplates2/private/qquickdrawer_p.h>
19#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
20#include <QtQuickTemplates2/private/qquickvelocitycalculator_p_p.h>
21
23
25{
26 Q_DECLARE_PUBLIC(QQuickDrawer)
27
28public:
30 {
31 return drawer->d_func();
32 }
33
34 qreal offsetAt(const QPointF &point) const;
35 qreal positionAt(const QPointF &point) const;
36
38 void showOverlay() override;
39 void hideOverlay() override;
40 void resizeOverlay() override;
41
42 bool startDrag(QEvent *event);
44#if QT_CONFIG(quicktemplates2_multitouch)
45 bool grabTouch(QQuickItem *item, QTouchEvent *event);
46#endif
47 bool blockInput(QQuickItem *item, const QPointF &point) const override;
48
49 bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp) override;
50 bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp) override;
51 bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp) override;
52 void handleUngrab() override;
53
54 bool prepareEnterTransition() override;
55 bool prepareExitTransition() override;
56
57 bool setEdge(Qt::Edge edge);
58
65};
66
68
69#endif // QQUICKDRAWER_P_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtGui
Definition qevent.h:195
\inmodule QtCore\reentrant
Definition qpoint.h:214
static QQuickDrawerPrivate * get(QQuickDrawer *drawer)
void handleUngrab() override
void hideOverlay() override
bool prepareEnterTransition() override
bool handlePress(QQuickItem *item, const QPointF &point, ulong timestamp) override
bool setEdge(Qt::Edge edge)
qreal positionAt(const QPointF &point) const
QQuickPopupPositioner * getPositioner() override
void resizeOverlay() override
bool grabMouse(QQuickItem *item, QMouseEvent *event)
bool handleRelease(QQuickItem *item, const QPointF &point, ulong timestamp) override
bool startDrag(QEvent *event)
qreal offsetAt(const QPointF &point) const
bool blockInput(QQuickItem *item, const QPointF &point) const override
bool handleMove(QQuickItem *item, const QPointF &point, ulong timestamp) override
bool prepareExitTransition() override
void showOverlay() override
QQuickVelocityCalculator velocityCalculator
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:916
Combined button and popup list for selecting options.
@ LeftEdge
GLenum GLuint GLintptr offset
struct _cl_event * event
unsigned long ulong
Definition qtypes.h:30
double qreal
Definition qtypes.h:92
QGraphicsItem * item