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
qwasmdrag.h
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWINDOWSDRAG_H
6
#
define
QWINDOWSDRAG_H
7
8
#
include
<
private
/
qstdweb_p
.
h
>
9
#
include
<
private
/
qsimpledrag_p
.
h
>
10
11
#
include
<
qpa
/
qplatformdrag
.
h
>
12
#
include
<
QtGui
/
qdrag
.
h
>
13
14
#
include
<
memory
>
15
16
QT_BEGIN_NAMESPACE
17
18
struct
DragEvent;
19
20
class
QWasmScreen
;
21
class
QWasmDrag
final
:
public
QSimpleDrag
22
{
23
public
:
24
QWasmDrag
();
25
~
QWasmDrag
()
override
;
26
QWasmDrag
(
const
QWasmDrag &other) =
delete
;
27
QWasmDrag
(QWasmDrag &&other) =
delete
;
28
QWasmDrag &
operator
=(
const
QWasmDrag &other) =
delete
;
29
QWasmDrag &
operator
=(QWasmDrag &&other) =
delete
;
30
31
static
QWasmDrag *
instance
();
32
33
void
onNativeDragOver
(
DragEvent
*event);
34
void
onNativeDrop
(
DragEvent
*event);
35
void
onNativeDragStarted
(
DragEvent
*event);
36
void
onNativeDragFinished
(
DragEvent
*event,
QWasmScreen
*platformScreen);
37
void
onNativeDragEnter
(
DragEvent
*event);
38
void
onNativeDragLeave
(
DragEvent
*event);
39
40
// QPlatformDrag:
41
Qt
::
DropAction
drag
(QDrag *drag)
final
;
42
43
private
:
44
struct
DragState
;
45
bool
m_isInEnterDrag =
false
;
46
std
::shared_ptr<
DragState
> m_dragState;
47
};
48
49
QT_END_NAMESPACE
50
51
#
endif
// QWINDOWSDRAG_H
QPoint
\inmodule QtCore\reentrant
Definition
qpoint.h:30
QWasmDrag::DragState::DragImage
Definition
qwasmdrag.cpp:54
QWasmDrag::DragState::DragImage::DragImage
DragImage(const QPixmap &pixmap, const QMimeData *mimeData, QWindow *window)
Definition
qwasmdrag.cpp:289
QWasmDrag::DragState::DragImage::htmlElement
emscripten::val htmlElement()
Definition
qwasmdrag.cpp:59
QWasmDrag::DragState::DragImage::pixmap
QPixmap pixmap() const
Definition
qwasmdrag.cpp:60
QWasmDrag::DragState::DragImage::~DragImage
~DragImage()
Definition
qwasmdrag.cpp:307
QWasmDrag::QWasmDrag
QWasmDrag(QWasmDrag &&other)=delete
QWasmDrag::operator=
QWasmDrag & operator=(QWasmDrag &&other)=delete
QWasmDrag::drag
Qt::DropAction drag(QDrag *drag) final
Definition
qwasmdrag.cpp:96
QWasmDrag::onNativeDrop
void onNativeDrop(DragEvent *event)
Definition
qwasmdrag.cpp:167
QWasmDrag::QWasmDrag
QWasmDrag(const QWasmDrag &other)=delete
QWasmDrag::onNativeDragEnter
void onNativeDragEnter(DragEvent *event)
Definition
qwasmdrag.cpp:253
QWasmDrag::onNativeDragLeave
void onNativeDragLeave(DragEvent *event)
Definition
qwasmdrag.cpp:274
QWasmDrag::QWasmDrag
QWasmDrag()
QWasmDrag::operator=
QWasmDrag & operator=(const QWasmDrag &other)=delete
QWasmDrag::onNativeDragOver
void onNativeDragOver(DragEvent *event)
Definition
qwasmdrag.cpp:143
QWasmDrag::~QWasmDrag
~QWasmDrag() override
QWasmDrag::instance
static QWasmDrag * instance()
Definition
qwasmdrag.cpp:91
QWasmDrag::onNativeDragStarted
void onNativeDragStarted(DragEvent *event)
Definition
qwasmdrag.cpp:122
QWasmDrag::onNativeDragFinished
void onNativeDragFinished(DragEvent *event, QWasmScreen *platformScreen)
Definition
qwasmdrag.cpp:215
QWasmIntegration
Definition
qwasmintegration.h:41
QWasmIntegration::get
static QWasmIntegration * get()
Definition
qwasmintegration.h:77
QWasmScreen
Definition
qwasmscreen.h:29
QWasmScreen::element
emscripten::val element() const
Definition
qwasmscreen.cpp:128
QWasmScreen::geometry
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
Definition
qwasmscreen.cpp:139
QWasmWindow::fromWindow
static QWasmWindow * fromWindow(const QWindow *window)
Definition
qwasmwindow.cpp:315
QWasmWindow::QWasmCompositor
friend class QWasmCompositor
Definition
qwasmwindow.h:237
QWasmWindow::platformScreen
QWasmScreen * platformScreen() const
Definition
qwasmwindow.cpp:412
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_BEGIN_NAMESPACE::windowForDrag
QWindow * windowForDrag(QDrag *drag)
Definition
qwasmdrag.cpp:34
dom
Definition
qwasmdom.h:30
emscripten
Definition
qwasmwindowtreenode.h:12
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
EventType
EventType
Definition
qwasmevent.h:23
EventType::DragStart
@ DragStart
Definition
qwasmevent.h:26
DragEvent
Definition
qwasmevent.h:145
DragEvent::acceptDrop
void acceptDrop()
Definition
qwasmevent.cpp:212
DragEvent::acceptDragOver
void acceptDragOver()
Definition
qwasmevent.cpp:206
DragEvent::cancelDragStart
void cancelDragStart()
Definition
qwasmevent.cpp:200
DragEvent::targetWindow
QWindow * targetWindow
Definition
qwasmevent.h:154
MouseEvent
Definition
qwasmevent.h:82
QWasmDrag::DragState
Definition
qwasmdrag.cpp:52
QWasmDrag::DragState::DragState
DragState(QWasmDrag &&other)=delete
QWasmDrag::DragState::quitEventLoopClosure
std::function< void()> quitEventLoopClosure
Definition
qwasmdrag.cpp:82
QWasmDrag::DragState::DragState
DragState(QDrag *drag, QWindow *window, std::function< void()> quitEventLoopClosure)
Definition
qwasmdrag.cpp:417
QWasmDrag::DragState::window
QWindow * window
Definition
qwasmdrag.cpp:81
QWasmDrag::DragState::drag
QDrag * drag
Definition
qwasmdrag.cpp:80
QWasmDrag::DragState::~DragState
~DragState()
QWasmDrag::DragState::dragImage
std::unique_ptr< DragImage > dragImage
Definition
qwasmdrag.cpp:83
QWasmDrag::DragState::dropAction
Qt::DropAction dropAction
Definition
qwasmdrag.cpp:84
QWasmDrag::DragState::DragState
DragState(const QWasmDrag &other)=delete
QWasmDrag::DragState::operator=
DragState & operator=(QWasmDrag &&other)=delete
QWasmDrag::DragState::operator=
DragState & operator=(const QWasmDrag &other)=delete
qtbase
src
plugins
platforms
wasm
qwasmdrag.h
Generated on
for Qt by
1.18.0