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

#include <qwasmevent.h>

+ Inheritance diagram for WheelEvent:
+ Collaboration diagram for WheelEvent:

Public Member Functions

 WheelEvent (EventType type, emscripten::val webEvent)
 
 ~WheelEvent ()
 
 WheelEvent (const WheelEvent &other)
 
 WheelEvent (WheelEvent &&other)
 
WheelEventoperator= (const WheelEvent &other)
 
WheelEventoperator= (WheelEvent &&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< WheelEventfromWeb (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

DeltaMode deltaMode
 
bool webkitDirectionInvertedFromDevice
 
QPointF delta
 
- 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 237 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ WheelEvent() [1/3]

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

Definition at line 261 of file qwasmevent.cpp.

References delta, deltaMode, Line, Page, Pixel, and webkitDirectionInvertedFromDevice.

◆ ~WheelEvent()

WheelEvent::~WheelEvent ( )
default

◆ WheelEvent() [2/3]

WheelEvent::WheelEvent ( const WheelEvent other)
default

◆ WheelEvent() [3/3]

WheelEvent::WheelEvent ( WheelEvent &&  other)
default

Member Function Documentation

◆ fromWeb()

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

Definition at line 288 of file qwasmevent.cpp.

References Wheel.

Referenced by QWasmWindow::QWasmWindow().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ delta

QPointF WheelEvent::delta

Definition at line 250 of file qwasmevent.h.

Referenced by WheelEvent().

◆ deltaMode

DeltaMode WheelEvent::deltaMode

Definition at line 248 of file qwasmevent.h.

Referenced by WheelEvent().

◆ webkitDirectionInvertedFromDevice

bool WheelEvent::webkitDirectionInvertedFromDevice

Definition at line 249 of file qwasmevent.h.

Referenced by WheelEvent().


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