Qt 6.x
The Qt SDK
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)
 
 ~DragEvent ()
 
 DragEvent (const DragEvent &other)
 
 DragEvent (DragEvent &&other)
 
DragEventoperator= (const DragEvent &other)
 
DragEventoperator= (DragEvent &&other)
 
- 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 target)
 
 ~Event ()
 
 Event (const Event &other)
 
 Event (Event &&other)
 
Eventoperator= (const Event &other)
 
Eventoperator= (Event &&other)
 

Static Public Member Functions

static std::optional< DragEventfromWeb (emscripten::val webEvent)
 
- 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
 
emscripten::val dataTransfer
 
- 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
EventType type
 
emscripten::val target = emscripten::val::undefined()
 

Detailed Description

Definition at line 222 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ DragEvent() [1/3]

DragEvent::DragEvent ( EventType  type,
emscripten::val  webEvent 
)

◆ ~DragEvent()

DragEvent::~DragEvent ( )
default

◆ DragEvent() [2/3]

DragEvent::DragEvent ( const DragEvent other)
default

◆ DragEvent() [3/3]

DragEvent::DragEvent ( DragEvent &&  other)
default

Member Function Documentation

◆ fromWeb()

std::optional< DragEvent > DragEvent::fromWeb ( emscripten::val  webEvent)
static

Definition at line 247 of file qwasmevent.cpp.

References Drop.

Referenced by QWasmWindow::QWasmWindow().

+ 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

emscripten::val DragEvent::dataTransfer

Definition at line 234 of file qwasmevent.h.

◆ dropAction

Qt::DropAction DragEvent::dropAction

Definition at line 233 of file qwasmevent.h.

Referenced by DragEvent().


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