File: qtouchevent-touchpoint.html

package info (click to toggle)
python-qt4 4.12.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 40,300 kB
  • ctags: 6,185
  • sloc: python: 125,988; cpp: 13,291; xml: 292; makefile: 246; php: 27; sh: 2
file content (138 lines) | stat: -rw-r--r-- 12,465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QTouchEvent.TouchPoint Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTouchEvent.TouchPoint Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The TouchPoint class provides information about a touch point in
a <a href="qtouchevent.html">QTouchEvent</a>. <a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" />int <b><a href="qtouchevent-touchpoint.html#id">id</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtouchevent-touchpoint.html#isPrimary">isPrimary</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastPos">lastPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#pos">pos</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qtouchevent-touchpoint.html#pressure">pressure</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#rect">rect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#scenePos">scenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#sceneRect">sceneRect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#screenPos">screenPos</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#screenRect">screenRect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startPos">startPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.TouchPointState <b><a href="qtouchevent-touchpoint.html#state">state</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The TouchPoint class provides information about a touch point in
a <a href="qtouchevent.html">QTouchEvent</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="id" />int TouchPoint.id (<i>self</i>)</h3><p>Returns the id number of this touch point.</p>
<p>Id numbers are globally sequential, starting at zero, meaning
the first touch point in the application has id 0, the second has
id 1, and so on.</p>


<h3 class="fn"><a name="isPrimary" />bool TouchPoint.isPrimary (<i>self</i>)</h3><p>Returns true if this touch point is the primary touch point. The
primary touch point is the point for which the windowing system
generates mouse events.</p>


<h3 class="fn"><a name="lastNormalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastNormalizedPos (<i>self</i>)</h3><p>Returns the normalized position of this touch point from the
previous touch event.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and
<a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>().</p>


<h3 class="fn"><a name="lastPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastPos (<i>self</i>)</h3><p>Returns the position of this touch point from the previous touch
event, relative to the widget or <a href="qgraphicsitem.html">QGraphicsItem</a> that received the event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#startPos">startPos</a>().</p>


<h3 class="fn"><a name="lastScenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastScenePos (<i>self</i>)</h3><p>Returns the scene position of this touch point from the previous
touch event.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>().</p>


<h3 class="fn"><a name="lastScreenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastScreenPos (<i>self</i>)</h3><p>Returns the screen position of this touch point from the
previous touch event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>().</p>


<h3 class="fn"><a name="normalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.normalizedPos (<i>self</i>)</h3><p>Returns the normalized position of this touch point.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>(),
<a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>(),
and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="pos" /><a href="qpointf.html">QPointF</a> TouchPoint.pos (<i>self</i>)</h3><p>Returns the position of this touch point, relative to the widget
or <a href="qgraphicsitem.html">QGraphicsItem</a> that received the
event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startPos">startPos</a>(), <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>(), <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>(), <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>(), and <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>().</p>


<h3 class="fn"><a name="pressure" />float TouchPoint.pressure (<i>self</i>)</h3><p>Returns the pressure of this touch point. The return value is in
the range 0.0 to 1.0.</p>


<h3 class="fn"><a name="rect" /><a href="qrectf.html">QRectF</a> TouchPoint.rect (<i>self</i>)</h3><p>Returns the rect for this touch point, relative to the widget or
<a href="qgraphicsitem.html">QGraphicsItem</a> that received the
event. The rect is centered around the point returned by <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>


<h3 class="fn"><a name="scenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.scenePos (<i>self</i>)</h3><p>Returns the scene position of this touch point.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>(),
<a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>(), and
<a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="sceneRect" /><a href="qrectf.html">QRectF</a> TouchPoint.sceneRect (<i>self</i>)</h3><p>Returns the rect for this touch point in scene coordinates.</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#rect">rect</a>().</p>


<h3 class="fn"><a name="screenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.screenPos (<i>self</i>)</h3><p>Returns the screen position of this touch point.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>(),
<a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>(),
and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="screenRect" /><a href="qrectf.html">QRectF</a> TouchPoint.screenRect (<i>self</i>)</h3><p>Returns the rect for this touch point in screen coordinates.</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#rect">rect</a>().</p>


<h3 class="fn"><a name="startNormalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startNormalizedPos (<i>self</i>)</h3><p>Returns the normalized starting position of this touch
point.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and
<a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>().</p>


<h3 class="fn"><a name="startPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startPos (<i>self</i>)</h3><p>Returns the starting position of this touch point, relative to
the widget or <a href="qgraphicsitem.html">QGraphicsItem</a> that
received the event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>().</p>


<h3 class="fn"><a name="startScenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.startScenePos (<i>self</i>)</h3><p>Returns the starting scene position of this touch point.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>().</p>


<h3 class="fn"><a name="startScreenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startScreenPos (<i>self</i>)</h3><p>Returns the starting screen position of this touch point.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>().</p>


<h3 class="fn"><a name="state" /><a href="qt.html#TouchPointState-enum">Qt.TouchPointState</a> TouchPoint.state (<i>self</i>)</h3><p>Returns the current state of this touch point.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.12.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qt.io">The Qt Company</a> 2015</td><td align="right" width="25%">Qt&#160;4.8.7</td></tr></table></div></address></body></html>