tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 124Markdown 82TOML 78Shell 12149 Definiciones

⎇ main widgets/clipboard/README.md Markdown · 20 líneas · 649 B Historia crudo

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-clipboard
2
3The system clipboard for Llimphi apps.
4
5The `text-editor` defines the `Clipboard` trait but leaves the backend to the
6caller (it does not want to couple itself to X11/Wayland/macOS/Windows). This
7crate provides the obvious backend — `arboard` — so any app can plug it in with
8one line:
9
10```ignore
11let mut clip = llimphi_clipboard::SystemClipboard::new();
12editor.apply_key_with_clipboard(&ev, &mut clip);
13```
14
15With no display (headless CI, a session without a graphics server) it degrades
16to a silent no-op: `get` returns `None`, `set` discards. It never panics.
17
18---
19
20Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-clipboard

The system clipboard for Llimphi apps.

The text-editor defines the Clipboard trait but leaves the backend to the caller (it does not want to couple itself to X11/Wayland/macOS/Windows). This crate provides the obvious backend — arboard — so any app can plug it in with one line:

let mut clip = llimphi_clipboard::SystemClipboard::new();
editor.apply_key_with_clipboard(&ev, &mut clip);

With no display (headless CI, a session without a graphics server) it degrades to a silent no-op: get returns None, set discards. It never panics.


Part of llimphi — see llimphi.