nodeguy/24219ada.bb129cec.js
2020-06-26 17:18:07 +02:00

1 line
13 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{169:function(e,t,a){"use strict";a.r(t),a.d(t,"frontMatter",(function(){return c})),a.d(t,"metadata",(function(){return p})),a.d(t,"rightToc",(function(){return l})),a.d(t,"default",(function(){return o}));var n=a(2),r=a(6),b=(a(0),a(465)),c={id:"qnativegestureevent",title:"QNativeGestureEvent",sidebar_label:"QNativeGestureEvent"},p={id:"api/generated/classes/qnativegestureevent",title:"QNativeGestureEvent",description:"Hierarchy",source:"@site/docs/api/generated/classes/qnativegestureevent.md",permalink:"/docs/api/generated/classes/qnativegestureevent",editUrl:"https://github.com/nodegui/nodegui/edit/master/website/docs/api/generated/classes/qnativegestureevent.md",sidebar_label:"QNativeGestureEvent",sidebar:"api",previous:{title:"QMovie",permalink:"/docs/api/generated/classes/qmovie"},next:{title:"QObject",permalink:"/docs/api/generated/classes/qobject"}},l=[{value:"Hierarchy",id:"hierarchy",children:[]},{value:"Index",id:"index",children:[{value:"Constructors",id:"constructors",children:[]},{value:"Properties",id:"properties",children:[]},{value:"Methods",id:"methods",children:[]}]},{value:"Constructors",id:"constructors-1",children:[{value:"constructor",id:"constructor",children:[]}]},{value:"Properties",id:"properties-1",children:[{value:"native",id:"native",children:[]}]},{value:"Methods",id:"methods-1",children:[{value:"gestureType",id:"gesturetype",children:[]},{value:"globalPos",id:"globalpos",children:[]},{value:"localPos",id:"localpos",children:[]},{value:"pos",id:"pos",children:[]},{value:"screenPos",id:"screenpos",children:[]},{value:"value",id:"value",children:[]},{value:"windowPos",id:"windowpos",children:[]}]}],s={rightToc:l};function o(e){var t=e.components,a=Object(r.a)(e,["components"]);return Object(b.b)("wrapper",Object(n.a)({},s,a,{components:t,mdxType:"MDXLayout"}),Object(b.b)("h2",{id:"hierarchy"},"Hierarchy"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("strong",{parentName:"li"},"QNativeGestureEvent"))),Object(b.b)("h2",{id:"index"},"Index"),Object(b.b)("h3",{id:"constructors"},"Constructors"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#constructor"}),"constructor"))),Object(b.b)("h3",{id:"properties"},"Properties"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#native"}),"native"))),Object(b.b)("h3",{id:"methods"},"Methods"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#gesturetype"}),"gestureType")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#globalpos"}),"globalPos")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#localpos"}),"localPos")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#pos"}),"pos")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#screenpos"}),"screenPos")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#value"}),"value")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("a",Object(n.a)({parentName:"li"},{href:"/docs/api/generated/classes/qnativegestureevent#windowpos"}),"windowPos"))),Object(b.b)("h2",{id:"constructors-1"},"Constructors"),Object(b.b)("h3",{id:"constructor"},"constructor"),Object(b.b)("p",null,"+"," ",Object(b.b)("strong",{parentName:"p"},"new QNativeGestureEvent"),"(",Object(b.b)("inlineCode",{parentName:"p"},"event"),": ",Object(b.b)("a",Object(n.a)({parentName:"p"},{href:"/docs/api/generated/globals#nativeelement"}),"NativeElement"),"): ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qnativegestureevent"}),"QNativeGestureEvent"))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Parameters:")),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Type"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"event")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("a",Object(n.a)({parentName:"td"},{href:"/docs/api/generated/globals#nativeelement"}),"NativeElement"))))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/classes/qnativegestureevent"}),"QNativeGestureEvent"))),Object(b.b)("h2",{id:"properties-1"},"Properties"),Object(b.b)("h3",{id:"native"},"native"),Object(b.b)("p",null,"\u2022 ",Object(b.b)("strong",{parentName:"p"},"native"),": ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/globals#nativeelement"}),"NativeElement"))),Object(b.b)("h2",{id:"methods-1"},"Methods"),Object(b.b)("h3",{id:"gesturetype"},"gestureType"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"gestureType"),"(): ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/nativegesturetype"}),"NativeGestureType"))),Object(b.b)("p",null,"Returns the gesture type"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"/docs/api/generated/enums/nativegesturetype"}),"NativeGestureType"))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"globalpos"},"globalPos"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"globalPos"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the gesture as a QPointF in screen coordinates"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"localpos"},"localPos"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"localPos"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the gesture as a QPointF,\nrelative to the widget or item that received the event"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"pos"},"pos"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"pos"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the mouse cursor,\nrelative to the widget or item that received the event"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"screenpos"},"screenPos"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"screenPos"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the gesture as a QPointF in screen coordinates"),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))),Object(b.b)("hr",null),Object(b.b)("h3",{id:"value"},"value"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"value"),"(): ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("p",null,"Returns the gesture value."),Object(b.b)("p",null,"The value should be interpreted based on the gesture type.\nFor example, a Zoom gesture provides a scale factor while a\nRotate gesture provides a rotation delta."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"number")),Object(b.b)("hr",null),Object(b.b)("h3",{id:"windowpos"},"windowPos"),Object(b.b)("p",null,"\u25b8 ",Object(b.b)("strong",{parentName:"p"},"windowPos"),"(): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,"Returns the position of the gesture as a QPointF,\nrelative to the window that received the event."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"x"),": ",Object(b.b)("em",{parentName:"p"},"number"))),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"y"),": ",Object(b.b)("em",{parentName:"p"},"number")))))}o.isMDXComponent=!0},465:function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return O}));var n=a(0),r=a.n(n);function b(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){b(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function l(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},b=Object.keys(e);for(n=0;n<b.length;n++)a=b[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(n=0;n<b.length;n++)a=b[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=r.a.createContext({}),o=function(e){var t=r.a.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},i=function(e){var t=o(e.components);return r.a.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},j=r.a.forwardRef((function(e,t){var a=e.components,n=e.mdxType,b=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),i=o(a),j=n,O=i["".concat(c,".").concat(j)]||i[j]||u[j]||b;return a?r.a.createElement(O,p(p({ref:t},s),{},{components:a})):r.a.createElement(O,p({ref:t},s))}));function O(e,t){var a=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var b=a.length,c=new Array(b);c[0]=j;var p={};for(var l in t)hasOwnProperty.call(t,l)&&(p[l]=t[l]);p.originalType=e,p.mdxType="string"==typeof e?e:n,c[1]=p;for(var s=2;s<b;s++)c[s]=a[s];return r.a.createElement.apply(null,c)}return r.a.createElement.apply(null,a)}j.displayName="MDXCreateElement"}}]);