|
|
Line 281: |
Line 281: |
| } NPWindow; | | } NPWindow; |
| </pre> | | </pre> |
|
| |
| === Optimizations for 2D Rendering ===
| |
| In order to avoid drawing an entire region on the screen when only a small portion is updated, it may be useful for the plugin to use existing APIs to mark only a small region as needing to be updated by the next FlushRenderContext.
| |
|
| |
| <pre>
| |
| void NPN_InvalidateRect(NPP instance, NPRect* invalidRect)
| |
| </pre>
| |
| * The plugin informs the renderer that it would like to replace the contents of the specified rectangle.
| |
|
| |
|
| == Event Handling == | | == Event Handling == |