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
DragEvent Struct Reference

#include <qwasmevent.h>

+ Inheritance diagram for DragEvent:
+ Collaboration diagram for DragEvent:

Public Member Functions

 DragEvent (EventType type, emscripten::val webEvent, QWindow *targetQWindow)
 
 ~DragEvent ()
 
 DragEvent (const DragEvent &other)
 
 DragEvent (DragEvent &&other)
 
DragEventoperator= (const DragEvent &other)
 
DragEventoperator= (DragEvent &&other)
 
void cancelDragStart ()
 
void acceptDragOver ()
 
void acceptDrop ()
 
- Public Member Functions inherited from MouseEvent
 MouseEvent (EventType type, emscripten::val webEvent)
 
 ~MouseEvent ()
 
 MouseEvent (const MouseEvent &other)
 
 MouseEvent (MouseEvent &&other)
 
MouseEventoperator= (const MouseEvent &other)
 
MouseEventoperator= (MouseEvent &&other)
 
- Public Member Functions inherited from Event
 Event (EventType type, emscripten::val webEvent)
 
 ~Event ()
 
 Event (const Event &other)
 
 Event (Event &&other)
 
Eventoperator= (const Event &other)
 
Eventoperator= (Event &&other)
 
emscripten::val target () const
 

Static Public Member Functions

static std::optional< DragEventfromWeb (emscripten::val webEvent, QWindow *targetQWindow)
 
- Static Public Member Functions inherited from MouseEvent
static constexpr Qt::MouseButton buttonFromWeb (int webButton)
 
static constexpr Qt::MouseButtons buttonsFromWeb (unsigned short webButtons)
 
static constexpr QEvent::Type mouseEventTypeFromEventType (EventType eventType, WindowArea windowArea)
 

Public Attributes

Qt::DropAction dropAction
 
dom::DataTransfer dataTransfer
 
QWindowtargetWindow
 
- Public Attributes inherited from MouseEvent
QPointF localPoint
 
QPointF pointInPage
 
QPointF pointInViewport
 
Qt::MouseButton mouseButton
 
Qt::MouseButtons mouseButtons
 
QFlags< Qt::KeyboardModifiermodifiers
 
- Public Attributes inherited from Event
emscripten::val webEvent
 
EventType type
 

Detailed Description

Definition at line 233 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ DragEvent() [1/3]

DragEvent::DragEvent ( EventType type,
emscripten::val webEvent,
QWindow * targetQWindow )

Definition at line 233 of file qwasmevent.cpp.

References Qt::CopyAction, dropAction, effect, Qt::IgnoreAction, Qt::LinkAction, and Qt::MoveAction.

Referenced by fromWeb().

+ Here is the caller graph for this function:

◆ ~DragEvent()

DragEvent::~DragEvent ( )
default

◆ DragEvent() [2/3]

DragEvent::DragEvent ( const DragEvent & other)
default

◆ DragEvent() [3/3]

DragEvent::DragEvent ( DragEvent && other)
default

Member Function Documentation

◆ acceptDragOver()

void DragEvent::acceptDragOver ( )

Definition at line 285 of file qwasmevent.cpp.

References DragOver, Q_ASSERT_X, Q_FUNC_INFO, and Event::webEvent.

◆ acceptDrop()

void DragEvent::acceptDrop ( )

Definition at line 291 of file qwasmevent.cpp.

References Drop, Q_ASSERT_X, Q_FUNC_INFO, and Event::webEvent.

◆ cancelDragStart()

void DragEvent::cancelDragStart ( )

Definition at line 279 of file qwasmevent.cpp.

References DragStart, Q_ASSERT_X, Q_FUNC_INFO, and Event::webEvent.

◆ fromWeb()

std::optional< DragEvent > DragEvent::fromWeb ( emscripten::val webEvent,
QWindow * targetQWindow )
static

Definition at line 259 of file qwasmevent.cpp.

References DragEvent(), DragEnd, DragOver, DragStart, Drop, and targetWindow.

Referenced by ClientArea::ClientArea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

DragEvent & DragEvent::operator= ( const DragEvent & other)
default

◆ operator=() [2/2]

DragEvent & DragEvent::operator= ( DragEvent && other)
default

Member Data Documentation

◆ dataTransfer

dom::DataTransfer DragEvent::dataTransfer

Definition at line 249 of file qwasmevent.h.

◆ dropAction

Qt::DropAction DragEvent::dropAction

Definition at line 248 of file qwasmevent.h.

Referenced by DragEvent().

◆ targetWindow

QWindow* DragEvent::targetWindow

Definition at line 250 of file qwasmevent.h.

Referenced by fromWeb().


The documentation for this struct was generated from the following files: