89
edits
| Line 40: | Line 40: | ||
/* Acquire Pepper device function pointers */ | /* Acquire Pepper device function pointers */ | ||
NPAcquireDevicePtr aquireDevice; | NPAcquireDevicePtr aquireDevice; | ||
/* Clipboard functionality */ | |||
NPCopyTextToClipboardPtr copyTextToClipboard; | |||
/* ... */ | /* ... */ | ||
} NPExtensions; | } NPExtensions; | ||
| Line 47: | Line 49: | ||
<pre> | <pre> | ||
NPNVPepperExtensions | 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> | </pre> | ||
edits