{"attributes": {"isStatic": true, "group": "Event_Normalization", "name": "Swipe", "packageName": "qx.module.event", "fullName": "qx.module.event.Swipe", "type": "bootstrap"}, "type": "class", "children": [{"attributes": {"text": "<p>Normalization for the swipe gesture. This gesture is based on <a href=\"#Pointer\">Pointer events</a>\nmeaning that it&#8217;s available on all devices, no matter which input device type is used (e.g. mouse or\ntouchscreen).</p>"}, "type": "desc"}, {"attributes": {}, "type": "methods-static", "children": [{"attributes": {"line": 73, "isStatic": true, "name": "getAxis"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns whether the performed swipe was on the x or y axis.</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>&#8220;x&#8221;/&#8220;y&#8221; axis</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "String"}, "type": "entry"}]}]}]}, {"attributes": {"line": 85, "isStatic": true, "name": "getDirection"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns the direction of the performed swipe in reference to the axis.\ny = up / down\nx = left / right</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>the direction</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "String"}, "type": "entry"}]}]}]}, {"attributes": {"line": 105, "isStatic": true, "name": "getDistance"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns the distance of the performed swipe.</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>the distance</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Integer"}, "type": "entry"}]}]}]}, {"attributes": {"line": 63, "isStatic": true, "name": "getDuration"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns the duration the performed swipe took.</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>the duration</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Integer"}, "type": "entry"}]}]}]}, {"attributes": {"line": 53, "isStatic": true, "name": "getStartTime"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns the start time of the performed swipe.</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>the start time</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Integer"}, "type": "entry"}]}]}]}, {"attributes": {"line": 95, "isStatic": true, "name": "getVelocity"}, "type": "method", "children": [{"attributes": {"text": "<p>Returns the velocity of the performed swipe.</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>the velocity</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Number"}, "type": "entry"}]}]}]}, {"attributes": {"access": "internal", "isInternal": true, "line": 119, "isStatic": true, "name": "normalize"}, "type": "method", "children": [{"attributes": {}, "type": "params", "children": [{"attributes": {"name": "event"}, "type": "param", "children": [{"attributes": {"text": "<p>Native event object</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Event"}, "type": "entry"}]}]}, {"attributes": {"name": "element"}, "type": "param", "children": [{"attributes": {"text": "<p><span class=\"caps\">DOM</span> element the listener was attached to</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Element"}, "type": "entry"}]}]}]}, {"attributes": {"text": "<p>Manipulates the native event object, adding methods if they&#8217;re not\nalready present</p>"}, "type": "desc"}, {"attributes": {}, "type": "return", "children": [{"attributes": {"text": "<p>Normalized event object</p>"}, "type": "desc"}, {"attributes": {}, "type": "types", "children": [{"attributes": {"type": "Event"}, "type": "entry"}]}]}]}]}, {"attributes": {}, "type": "constants", "children": [{"attributes": {"type": "Array", "name": "BIND_METHODS", "value": "[\"getStartTime\",\"getDuration\",\"getAxis\",\"getDirection\",\"getVelocity\",\"getDistance\"]"}, "type": "constant"}, {"attributes": {"type": "Array", "name": "TYPES", "value": "[\"swipe\"]"}, "type": "constant", "children": [{"attributes": {"text": "<p>List of event types to be normalized</p>"}, "type": "desc"}]}]}]}