nodeguy/website/docs/api/generated/classes/qnativegestureevent.md
Atul R 2ceed980b4
adds test docs (#695)
* adds test docs

* update docs

* update api docs

* change to master
2020-09-19 20:12:08 +02:00

2.5 KiB
Raw Blame History

id title sidebar_label
qnativegestureevent QNativeGestureEvent QNativeGestureEvent

Hierarchy

  • QNativeGestureEvent

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QNativeGestureEvent(event: NativeRawPointer"QEvent"): QNativeGestureEvent

Parameters:

Name Type
event NativeRawPointer"QEvent"

Returns: QNativeGestureEvent

Properties

native

native: NativeElement

Methods

gestureType

gestureType(): NativeGestureType

Returns the gesture type

Returns: NativeGestureType


globalPos

globalPos(): object

Returns the position of the gesture as a QPointF in screen coordinates

Returns: object

  • x: number

  • y: number


localPos

localPos(): object

Returns the position of the gesture as a QPointF, relative to the widget or item that received the event

Returns: object

  • x: number

  • y: number


pos

pos(): object

Returns the position of the mouse cursor, relative to the widget or item that received the event

Returns: object

  • x: number

  • y: number


screenPos

screenPos(): object

Returns the position of the gesture as a QPointF in screen coordinates

Returns: object

  • x: number

  • y: number


value

value(): number

Returns the gesture value.

The value should be interpreted based on the gesture type. For example, a Zoom gesture provides a scale factor while a Rotate gesture provides a rotation delta.

Returns: number


windowPos

windowPos(): object

Returns the position of the gesture as a QPointF, relative to the window that received the event.

Returns: object

  • x: number

  • y: number