chromium/native_client_sdk/doc_generated/pepper_stable/c/struct_p_p___touch_point.html

{{+bindTo:partials.standard_nacl_api}}
<h1>PP_TouchPoint Struct Reference</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
  <div>
<!-- Generated by Doxygen 1.7.6.1 -->


</div>
<!--header-->
<div class="contents">
<!-- doxytag: class="PP_TouchPoint" --><h2>
Data Fields</h2><table class="memberdecls">

<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___touch_point.html#a27542ca67fc89c4fe41050750b80fc3b">id</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="struct_p_p___float_point.html">PP_FloatPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___touch_point.html#a5c2dfab481eaafbd40c9b837fc6f9106">position</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="struct_p_p___float_point.html">PP_FloatPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___touch_point.html#abcf813398210aaeaa587858f90139292">radius</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___touch_point.html#a8861a485f64399c787093d7fbf609b89">rotation_angle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___touch_point.html#a3af90cd7d4415434a1f18a23eb28b2d9">pressure</a></td></tr>
</table>
<hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <code><a class="el" href="struct_p_p___touch_point.html" title="The PP_TouchPoint struct represents all information about a single touch point, such as position...">PP_TouchPoint</a></code> struct represents all information about a single touch point, such as position, id, rotation angle, and pressure. </p>
</div><hr /><h2>Field Documentation</h2>
<a class="anchor" id="a27542ca67fc89c4fe41050750b80fc3b"></a><!-- doxytag: member="PP_TouchPoint::id" ref="a27542ca67fc89c4fe41050750b80fc3b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t <a class="el" href="struct_p_p___touch_point.html#a27542ca67fc89c4fe41050750b80fc3b">PP_TouchPoint::id</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value represents the identifier for this TouchPoint. </p>
<p>The id corresponds to the order in which the points were pressed. For example, the first point to be pressed has an id of 0, the second has an id of 1, and so on. An id can be reused when a touch point is released. For example, if two fingers are down, with id 0 and 1, and finger 0 releases, the next finger to be pressed can be assigned to id 0. </p>
</div>
</div>
<a class="anchor" id="a5c2dfab481eaafbd40c9b837fc6f9106"></a><!-- doxytag: member="PP_TouchPoint::position" ref="a5c2dfab481eaafbd40c9b837fc6f9106" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct <a class="el" href="struct_p_p___float_point.html">PP_FloatPoint</a> <a class="el" href="struct_p_p___touch_point.html#a5c2dfab481eaafbd40c9b837fc6f9106">PP_TouchPoint::position</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value represents the x and y pixel position of this TouchPoint relative to the upper-left of the module instance receiving the event. </p>
</div>
</div>
<a class="anchor" id="a3af90cd7d4415434a1f18a23eb28b2d9"></a><!-- doxytag: member="PP_TouchPoint::pressure" ref="a3af90cd7d4415434a1f18a23eb28b2d9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="struct_p_p___touch_point.html#a3af90cd7d4415434a1f18a23eb28b2d9">PP_TouchPoint::pressure</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value represents the pressure applied to this TouchPoint. </p>
<p>This value is typically between 0 and 1, with 0 indicating no pressure and 1 indicating some maximum pressure. Scaling differs depending on the hardware and the value is not guaranteed to stay within that range. </p>
</div>
</div>
<a class="anchor" id="abcf813398210aaeaa587858f90139292"></a><!-- doxytag: member="PP_TouchPoint::radius" ref="abcf813398210aaeaa587858f90139292" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct <a class="el" href="struct_p_p___float_point.html">PP_FloatPoint</a> <a class="el" href="struct_p_p___touch_point.html#abcf813398210aaeaa587858f90139292">PP_TouchPoint::radius</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value represents the elliptical radii, in screen pixels, in the x and y direction of this TouchPoint. </p>
</div>
</div>
<a class="anchor" id="a8861a485f64399c787093d7fbf609b89"></a><!-- doxytag: member="PP_TouchPoint::rotation_angle" ref="a8861a485f64399c787093d7fbf609b89" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="struct_p_p___touch_point.html#a8861a485f64399c787093d7fbf609b89">PP_TouchPoint::rotation_angle</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value represents the angle of rotation in degrees of the elliptical model of this TouchPoint clockwise from "up.". </p>
</div>
</div>
<hr />The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="pp__touch__point_8h.html">pp_touch_point.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}