Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
PointerEvent Struct Reference

#include <qwasmevent.h>

+ Inheritance diagram for PointerEvent:
+ Collaboration diagram for PointerEvent:

Public Member Functions

 PointerEvent (EventType type, emscripten::val webEvent)
 
 ~PointerEvent ()
 
 PointerEvent (const PointerEvent &other)
 
 PointerEvent (PointerEvent &&other)
 
PointerEventoperator= (const PointerEvent &other)
 
PointerEventoperator= (PointerEvent &&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< PointerEventfromWeb (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

PointerType pointerType
 
int pointerId
 
qreal pressure
 
qreal width
 
qreal height
 
bool isPrimary
 
- 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 203 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ PointerEvent() [1/3]

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

Definition at line 172 of file qwasmevent.cpp.

References isPrimary, Mouse, Other, pointerId, pointerType, pressure, and Touch.

◆ ~PointerEvent()

PointerEvent::~PointerEvent ( )
default

◆ PointerEvent() [2/3]

PointerEvent::PointerEvent ( const PointerEvent other)
default

◆ PointerEvent() [3/3]

PointerEvent::PointerEvent ( PointerEvent &&  other)
default

Member Function Documentation

◆ fromWeb()

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

Definition at line 198 of file qwasmevent.cpp.

References PointerDown, PointerEnter, PointerLeave, PointerMove, and PointerUp.

Referenced by ClientArea::ClientArea(), QWasmWindow::QWasmWindow(), Resizer::ResizerElement::ResizerElement(), and TitleBar::TitleBar().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ height

qreal PointerEvent::height

Definition at line 218 of file qwasmevent.h.

◆ isPrimary

bool PointerEvent::isPrimary

Definition at line 219 of file qwasmevent.h.

Referenced by PointerEvent().

◆ pointerId

int PointerEvent::pointerId

Definition at line 215 of file qwasmevent.h.

Referenced by PointerEvent().

◆ pointerType

PointerType PointerEvent::pointerType

Definition at line 214 of file qwasmevent.h.

Referenced by PointerEvent().

◆ pressure

qreal PointerEvent::pressure

Definition at line 216 of file qwasmevent.h.

Referenced by PointerEvent().

◆ width

qreal PointerEvent::width

Definition at line 217 of file qwasmevent.h.


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