blob: f136c39d0d2cf3822e7b20a41a1fbfc16ede0a11 [file] [log] [blame]
{{+bindTo:partials.standard_nacl_api}}
<h1>PP_VarValue Union 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_VarValue" --><h2>
Data Fields</h2><table class="memberdecls">
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_p_p___var_value.html#ab7c79b63a2e7fef545fcf8195bb5ad12">as_bool</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_p_p___var_value.html#a74da1e2b62153f138ae49147842f6d2c">as_int</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_p_p___var_value.html#aa4a3a6095ef825b30237d7c856ba4bf7">as_double</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_p_p___var_value.html#af3087d15f3c1ee35fe48f215292df1ad">as_id</a></td></tr>
</table>
<hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="union_p_p___var_value.html" title="The PP_VarValue union stores the data for any one of the types listed in the PP_VarType enum...">PP_VarValue</a> union stores the data for any one of the types listed in the PP_VarType enum. </p>
</div><hr /><h2>Field Documentation</h2>
<a class="anchor" id="ab7c79b63a2e7fef545fcf8195bb5ad12"></a><!-- doxytag: member="PP_VarValue::as_bool" ref="ab7c79b63a2e7fef545fcf8195bb5ad12" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a> <a class="el" href="union_p_p___var_value.html#ab7c79b63a2e7fef545fcf8195bb5ad12">PP_VarValue::as_bool</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If <code>type</code> is <code>PP_VARTYPE_BOOL</code>, <code>as_bool</code> represents the value of this <code><a class="el" href="struct_p_p___var.html" title="The PP_VAR struct is a variant data type and can contain any value of one of the types named in the P...">PP_Var</a></code> as <code>PP_Bool</code>. </p>
</div>
</div>
<a class="anchor" id="aa4a3a6095ef825b30237d7c856ba4bf7"></a><!-- doxytag: member="PP_VarValue::as_double" ref="aa4a3a6095ef825b30237d7c856ba4bf7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="union_p_p___var_value.html#aa4a3a6095ef825b30237d7c856ba4bf7">PP_VarValue::as_double</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If <code>type</code> is <code>PP_VARTYPE_DOUBLE</code>, <code>as_double</code> represents the value of this <code><a class="el" href="struct_p_p___var.html" title="The PP_VAR struct is a variant data type and can contain any value of one of the types named in the P...">PP_Var</a></code> as <code>double</code>. </p>
</div>
</div>
<a class="anchor" id="af3087d15f3c1ee35fe48f215292df1ad"></a><!-- doxytag: member="PP_VarValue::as_id" ref="af3087d15f3c1ee35fe48f215292df1ad" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t <a class="el" href="union_p_p___var_value.html#af3087d15f3c1ee35fe48f215292df1ad">PP_VarValue::as_id</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If <code>type</code> is <code>PP_VARTYPE_STRING</code>, <code>PP_VARTYPE_OBJECT</code>, <code>PP_VARTYPE_ARRAY</code>, <code>PP_VARTYPE_DICTIONARY</code>, <code>PP_VARTYPE_ARRAY_BUFFER</code>, or <code>PP_VARTYPE_RESOURCE</code>, <code>as_id</code> represents the value of this <code><a class="el" href="struct_p_p___var.html" title="The PP_VAR struct is a variant data type and can contain any value of one of the types named in the P...">PP_Var</a></code> as an opaque handle assigned by the browser. </p>
<p>This handle is guaranteed never to be 0, so a module can initialize this ID to 0 to indicate a "NULL handle." </p>
</div>
</div>
<a class="anchor" id="a74da1e2b62153f138ae49147842f6d2c"></a><!-- doxytag: member="PP_VarValue::as_int" ref="a74da1e2b62153f138ae49147842f6d2c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t <a class="el" href="union_p_p___var_value.html#a74da1e2b62153f138ae49147842f6d2c">PP_VarValue::as_int</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If <code>type</code> is <code>PP_VARTYPE_INT32</code>, <code>as_int</code> represents the value of this <code><a class="el" href="struct_p_p___var.html" title="The PP_VAR struct is a variant data type and can contain any value of one of the types named in the P...">PP_Var</a></code> as <code>int32_t</code>. </p>
</div>
</div>
<hr />The documentation for this union was generated from the following file:<ul>
<li><a class="el" href="pp__var_8h.html">pp_var.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}