QNativeGestureEvent

Hierarchy

  • QNativeGestureEvent

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QNativeGestureEvent(event: NativeElement): QNativeGestureEvent

Parameters:

NameType
eventNativeElement

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