blob: d4ed9452959a0549cc0a8dd92b9f6cf42992ff8e [file] [log] [blame]
{{+bindTo:partials.standard_nacl_api}}
<h1>PPB_Fullscreen 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="PPB_Fullscreen" --><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="struct_p_p_b___fullscreen__1__0.html#a8b6a560d3a57b6df9395b5dcf138cd1d">IsFullscreen</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance)</td></tr>
<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="struct_p_p_b___fullscreen__1__0.html#a1074f98a5800667313de626b0ed8ad27">SetFullscreen</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a> fullscreen)</td></tr>
<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="struct_p_p_b___fullscreen__1__0.html#afc4e416a40c4bf0ed1dd0cae74547c86">GetScreenSize</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, struct <a class="el" href="struct_p_p___size.html">PP_Size</a> *size)</td></tr>
</table>
<hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <code>PPB_Fullscreen</code> interface is implemented by the browser. </p>
<p>This interface provides a way of checking the current screen mode and toggling fullscreen mode. </p>
</div><hr /><h2>Field Documentation</h2>
<a class="anchor" id="afc4e416a40c4bf0ed1dd0cae74547c86"></a><!-- doxytag: member="PPB_Fullscreen::GetScreenSize" ref="afc4e416a40c4bf0ed1dd0cae74547c86" args=")(PP_Instance instance, struct PP_Size *size)" -->
<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="struct_p_p_b___fullscreen__1__0.html#afc4e416a40c4bf0ed1dd0cae74547c86">PPB_Fullscreen::GetScreenSize</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, struct <a class="el" href="struct_p_p___size.html">PP_Size</a> *size)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="struct_p_p_b___fullscreen__1__0.html#afc4e416a40c4bf0ed1dd0cae74547c86" title="GetScreenSize() gets the size of the screen in pixels.">GetScreenSize()</a> gets the size of the screen in pixels. </p>
<p>The module instance will be resized to this size when <a class="el" href="struct_p_p_b___fullscreen__1__0.html#a1074f98a5800667313de626b0ed8ad27" title="SetFullscreen() switches the module instance to and from fullscreen mode.">SetFullscreen()</a> is called to enter fullscreen mode.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">instance</td><td>A <code>PP_Instance</code> identifying one instance of a module. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>The size of the entire screen in pixels.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>PP_TRUE</code> on success or <code>PP_FALSE</code> on failure. </dd></dl>
</div>
</div>
<a class="anchor" id="a8b6a560d3a57b6df9395b5dcf138cd1d"></a><!-- doxytag: member="PPB_Fullscreen::IsFullscreen" ref="a8b6a560d3a57b6df9395b5dcf138cd1d" args=")(PP_Instance instance)" -->
<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="struct_p_p_b___fullscreen__1__0.html#a8b6a560d3a57b6df9395b5dcf138cd1d">PPB_Fullscreen::IsFullscreen</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="struct_p_p_b___fullscreen__1__0.html#a8b6a560d3a57b6df9395b5dcf138cd1d" title="IsFullscreen() checks whether the module instance is currently in fullscreen mode.">IsFullscreen()</a> checks whether the module instance is currently in fullscreen mode. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">instance</td><td>A <code>PP_Instance</code> identifying one instance of a module.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>PP_TRUE</code> if the module instance is in fullscreen mode, <code>PP_FALSE</code> if the module instance is not in fullscreen mode. </dd></dl>
</div>
</div>
<a class="anchor" id="a1074f98a5800667313de626b0ed8ad27"></a><!-- doxytag: member="PPB_Fullscreen::SetFullscreen" ref="a1074f98a5800667313de626b0ed8ad27" args=")(PP_Instance instance, PP_Bool fullscreen)" -->
<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="struct_p_p_b___fullscreen__1__0.html#a1074f98a5800667313de626b0ed8ad27">PPB_Fullscreen::SetFullscreen</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a> fullscreen)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="struct_p_p_b___fullscreen__1__0.html#a1074f98a5800667313de626b0ed8ad27" title="SetFullscreen() switches the module instance to and from fullscreen mode.">SetFullscreen()</a> switches the module instance to and from fullscreen mode. </p>
<p>The transition to and from fullscreen mode is asynchronous. During the transition, <a class="el" href="struct_p_p_b___fullscreen__1__0.html#a8b6a560d3a57b6df9395b5dcf138cd1d" title="IsFullscreen() checks whether the module instance is currently in fullscreen mode.">IsFullscreen()</a> will return the previous value and no 2D or 3D device can be bound. The transition ends at DidChangeView() when <a class="el" href="struct_p_p_b___fullscreen__1__0.html#a8b6a560d3a57b6df9395b5dcf138cd1d" title="IsFullscreen() checks whether the module instance is currently in fullscreen mode.">IsFullscreen()</a> returns the new value. You might receive other DidChangeView() calls while in transition.</p>
<p>The transition to fullscreen mode can only occur while the browser is processing a user gesture, even if <code>PP_TRUE</code> is returned.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">instance</td><td>A <code>PP_Instance</code> identifying one instance of a module. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">fullscreen</td><td><code>PP_TRUE</code> to enter fullscreen mode, or <code>PP_FALSE</code> to exit fullscreen mode.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>PP_TRUE</code> on success or <code>PP_FALSE</code> on failure. </dd></dl>
</div>
</div>
<hr />The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="ppb__fullscreen_8h.html">ppb_fullscreen.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}