QNativeGestureEvent

Hierarchy

  • QNativeGestureEvent

Index

Constructors

Properties

Methods

Constructors

constructor

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

Parameters:

NameType
eventNativeRawPointer‹"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