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
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 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< 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
emscripten::val webEvent
 
EventType type
 

Detailed Description

Definition at line 253 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ WheelEvent() [1/3]

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

Definition at line 297 of file qwasmevent.cpp.

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

Referenced by fromWeb().

+ Here is the caller graph for this function:

◆ ~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 324 of file qwasmevent.cpp.

References WheelEvent(), and Wheel.

Referenced by QWasmWindow::QWasmWindow().

+ Here is the call graph for this function:
+ 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 266 of file qwasmevent.h.

Referenced by WheelEvent().

◆ deltaMode

DeltaMode WheelEvent::deltaMode

Definition at line 264 of file qwasmevent.h.

Referenced by WheelEvent().

◆ webkitDirectionInvertedFromDevice

bool WheelEvent::webkitDirectionInvertedFromDevice

Definition at line 265 of file qwasmevent.h.

Referenced by WheelEvent().


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