Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 showDimmer() override;
39 void hideDimmer() override;
40 void resizeDimmer() 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 Qt::Edge effectiveEdge() const;
59 bool isWithinDragMargin(const QPointF &point) const;
60
67};
68
70
71#endif // QQUICKDRAWER_P_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtGui
Definition qevent.h:196
\inmodule QtCore\reentrant
Definition qpoint.h:217
static QQuickDrawerPrivate * get(QQuickDrawer *drawer)
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
QQuickPopupPositioner * getPositioner() 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
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
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:917
Combined button and popup list for selecting options.
@ LeftEdge
GLenum GLuint GLintptr offset
struct _cl_event * event
unsigned long ulong
Definition qtypes.h:35
double qreal
Definition qtypes.h:187
QGraphicsItem * item