Expand description
OS clipboard host for Lumen.
Wraps arboard 3.x behind the shared MimePayload abstraction
(QMimeData / GdkContentProvider analog). Carved out of
lumen-input per the OS plan section 469 + W6.1.
ClipboardHost-read/write/clearfor the standard system clipboard. Owns anarboard::Clipboardbehind aMutex.- [
set_rgba8_image] / [get_rgba8_image] preserved for backwards-compatible image round-trips used by lumenc’scopy_image/save_clipboard_imageRhai builtins.
arboard::Clipboard is !Send on Linux/Wayland - store as a
NonSend ECS resource (see [InstallExt::install_clipboard_host]).
On wasm32 the clipboard is the page’s navigator.clipboard, text only.
ClipboardHost::try_new finds it wherever the page has one (a secure
context: https or localhost) and reports it unavailable otherwise. A
page reads the clipboard asynchronously and only with the visitor’s
permission, so a read goes through ClipboardHost::read_text_then; the
synchronous readers and images answer as an absent clipboard does.
Re-exports§
pub use lumen_os_mime as mime;
Structs§
- Clipboard
Host - Single-process clipboard host. Wraps
arboard::Clipboardbehind aMutex- the underlying handle is!Sendon Linux/Wayland so this type stays!Syncby virtue ofMutex<arboard::Clipboard>having the same restriction.