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

147 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: "qnativegestureevent"
title: "QNativeGestureEvent"
sidebar_label: "QNativeGestureEvent"
---
## Hierarchy
* **QNativeGestureEvent**
## Index
### Constructors
* [constructor](qnativegestureevent.md#constructor)
### Properties
* [native](qnativegestureevent.md#native)
### Methods
* [gestureType](qnativegestureevent.md#gesturetype)
* [globalPos](qnativegestureevent.md#globalpos)
* [localPos](qnativegestureevent.md#localpos)
* [pos](qnativegestureevent.md#pos)
* [screenPos](qnativegestureevent.md#screenpos)
* [value](qnativegestureevent.md#value)
* [windowPos](qnativegestureevent.md#windowpos)
## Constructors
### constructor
\+ **new QNativeGestureEvent**(`event`: [NativeRawPointer](../globals.md#nativerawpointer)"QEvent"): *[QNativeGestureEvent](qnativegestureevent.md)*
**Parameters:**
Name | Type |
------ | ------ |
`event` | [NativeRawPointer](../globals.md#nativerawpointer)"QEvent" |
**Returns:** *[QNativeGestureEvent](qnativegestureevent.md)*
## Properties
### native
**native**: *[NativeElement](../globals.md#nativeelement)*
## Methods
### gestureType
**gestureType**(): *[NativeGestureType](../enums/nativegesturetype.md)*
Returns the gesture type
**Returns:** *[NativeGestureType](../enums/nativegesturetype.md)*
___
### 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*