Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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)
Public Member Functions inherited from MouseEvent
 MouseEvent (EventType type, emscripten::val webEvent)
Public Member Functions inherited from Event
 Event (EventType type, emscripten::val webEvent)
bool isTargetedForQtElement () const
emscripten::val target () const

Public Attributes

PointerType pointerType
int pointerId
qreal pressure
qreal tiltX
qreal tiltY
qreal tangentialPressure
qreal twist
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
emscripten::val webEvent
EventType type

Additional Inherited Members

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)

Detailed Description

Definition at line 124 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ PointerEvent()

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

Definition at line 158 of file qwasmevent.cpp.

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

Member Data Documentation

◆ height

qreal PointerEvent::height

Definition at line 136 of file qwasmevent.h.

◆ isPrimary

bool PointerEvent::isPrimary

Definition at line 137 of file qwasmevent.h.

Referenced by PointerEvent().

◆ pointerId

◆ pointerType

PointerType PointerEvent::pointerType

Definition at line 128 of file qwasmevent.h.

Referenced by PointerEvent().

◆ pressure

qreal PointerEvent::pressure

Definition at line 130 of file qwasmevent.h.

◆ tangentialPressure

qreal PointerEvent::tangentialPressure

Definition at line 133 of file qwasmevent.h.

◆ tiltX

qreal PointerEvent::tiltX

Definition at line 131 of file qwasmevent.h.

◆ tiltY

qreal PointerEvent::tiltY

Definition at line 132 of file qwasmevent.h.

◆ twist

qreal PointerEvent::twist

Definition at line 134 of file qwasmevent.h.

◆ width

qreal PointerEvent::width

Definition at line 135 of file qwasmevent.h.


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