NPN_ForceRedraw

  • Revision slug: NPN_ForceRedraw
  • Revision title: NPN_ForceRedraw
  • Revision id: 85684
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added

Revision Content

{{ Np-browser-api() }}

Summary

Asks the plugin host to immediately (synchronously) repaint invalid areas. NOTE: As of Firefox 4, this function will no longer have any effect when running with separate plugin processes.

Syntax

#include <npapi.h>
 
void NPN_ForceRedraw(NPP instance);

Parameters

The function has the following parameters:

instance
Plug-in instance for which the function forces redrawing.

Description

Once a region of a windowless plugin has been invalidated with NPN_InvalidateRect() or NPN_InvalidateRegion(), a plug-in can call NPN_ForceRedraw() to force a paint message. This causes a synchronous update event or paint message for the plug-in. Browsers may ignore this request.

See also

Revision Source

<p>{{ Np-browser-api() }}</p>
<h3 name="Summary">Summary</h3>
<p>Asks the plugin host to immediately (synchronously) repaint invalid areas. NOTE: As of Firefox 4, this function will no longer have any effect when running with separate plugin processes.</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
void NPN_ForceRedraw(NPP instance);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameters:</p>
<dl> <dt><code>instance</code></dt> <dd>Plug-in instance for which the function forces redrawing.</dd>
</dl>
<h3 name="Description">Description</h3>
<p>Once a region of a windowless plugin has been invalidated with <a href="/en/NPN_InvalidateRect" title="en/NPN_InvalidateRect">NPN_InvalidateRect()</a> or <a href="/en/NPN_InvalidateRegion" title="en/NPN_InvalidateRegion">NPN_InvalidateRegion()</a>, a plug-in can call <code>NPN_ForceRedraw()</code> to force a paint message. This causes a synchronous update event or paint message for the plug-in. Browsers may ignore this request.</p>
<h3>See also</h3>
<ul> <li><a href="/en/Gecko_Plugin_API_Reference/Drawing_and_Event_Handling" title="en/Gecko Plugin API Reference/Drawing and Event Handling">Drawing and event handling</a></li> <li><a href="/en/NPN_InvalidateRect" title="en/NPN_InvalidateRect">NPN_InvalidateRect()</a></li> <li><a href="/en/NPN_InvalidateRegion" title="en/NPN_InvalidateRegion">NPN_InvalidateRegion()</a></li> <li><a href="/en/NPP_HandleEvent" title="en/NPP_HandleEvent">NPP_HandleEvent()</a></li> <li><a href="/en/NPP" title="en/NPP">NPP</a></li>
</ul>
Revert to this revision