89
edits
Changes
→Getting the Pepper Extension Methods
/* Acquire Pepper device function pointers */
NPAcquireDevicePtr aquireDevice;
/* Clipboard functionality */
NPCopyTextToClipboardPtr copyTextToClipboard;
/* ... */
} NPExtensions;
<pre>
NPNVPepperExtensions
</pre>
= Clipboard =
In addition to devices API below, the NPExtensions struct provides a function pointer that can be used to copy strings to the clipboard.
<pre>
/* Copy UTF-8 string into clipboard */
typedef void (*NPCopyTextToClipboardPtr)(
NPP instance,
const char* content);
</pre>