website/docs/api/generated/classes/qnativegestureevent.md
↳ QNativeGestureEvent
+ new QNativeGestureEvent(event: NativeRawPointer‹"QEvent"›): QNativeGestureEvent
Overrides QEvent.constructor
Parameters:
| Name | Type |
|---|---|
event | NativeRawPointer‹"QEvent"› |
Returns: QNativeGestureEvent
• native: NativeElement
▸ accept(): void
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget
Returns: void
▸ gestureType(): NativeGestureType
Returns the gesture type
Returns: NativeGestureType
▸ globalPos(): object
Returns the position of the gesture as a QPointF in screen coordinates
Returns: object
x: number
y: number
▸ ignore(): void
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propagated to the parent widget.
Returns: void
▸ isAccepted(): boolean
Inherited from QEvent.isAccepted
Returns: boolean
▸ 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
▸ modifiers(): KeyboardModifier
Inherited from QInputEvent.modifiers
Returns: KeyboardModifier
▸ 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(): object
Returns the position of the gesture as a QPointF in screen coordinates
Returns: object
x: number
y: number
▸ setAccepted(accepted: boolean): void
Inherited from QEvent.setAccepted
Sets the accept flag of the event object
Parameters:
| Name | Type |
|---|---|
accepted | boolean |
Returns: void
▸ spontaneous(): boolean
Inherited from QEvent.spontaneous
Returns true if the event originated outside the application (a system event); otherwise returns false.
The return value of this function is not defined for paint events.
Returns: boolean
▸ timestamp(): number
Inherited from QInputEvent.timestamp
Returns: number
▸ type(): number
Returns the event type
Returns: number
This is QEvent::Type
▸ 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(): object
Returns the position of the gesture as a QPointF, relative to the window that received the event.
Returns: object
x: number
y: number