8.1 Overview

Plugins that have the capability flag HWPLUG_CAPS_CLIPBOARDADAPTER set can replace Hollywood's inbuilt clipboard functions with custom implementations. This can be useful if you're writing a display adapter using an alternative toolkit and you want to use the clipboard facilities of that toolkit instead of Hollywood's default ones.

Please note that clipboard adapters are not automatically initialized when Hollywood loads the plugin. Instead, you have to manually call hw_SetClipboardAdapter() in your RequirePlugin() function to activate the clipboard adapter. The clipboard adapter will then only be activated if the user calls @REQUIRE on your plugin. Otherwise, Hollywood will use its default clipboard handler. See Auto and manual plugin initialization for details.

See hw_SetClipboardAdapter for information on how to install your clipboard adapter.

If your plugin wants to inform Hollywood about changes in the clipboard contents, you can send the event HWEVT_CLIPBOARDCHANGE using hw_PostEvent(). See hw_PostEvent for details.

This plugin type is supported since Hollywood 11.0.


Show TOC