Skip to main content

Module selection

Module selection 

Source
Expand description

Clipboard content types for copy/paste operations

Contains ClipboardContent and StyledTextRun, used by clipboard and changeset modules.

Rich-text status: StyledTextRun, StyledTextRunVec and the ClipboardContent.styled_runs field are FFI-exported (api.json), but the rich path is only half-wired: the live clipboard producers build styled_runs empty (window.rs::get_selected_content_for_clipboard, paste in common/event.rs) and the platform clipboard backends write only plain_text. Fully wiring it means (a) extracting per-run style from the styled DOM when copying and (b) adding an HTML/RTF format to each platform’s clipboard write (and reading it back on paste). to_html() below is the retained consumer for that future format. Until then the FFI surface is kept (it is public API) but styled_runs stays empty.

Structs§

ClipboardContent
Clipboard content with both plain text and styled (HTML) representation
StyledTextRun
Styled text run for rich clipboard content
StyledTextRunVec
StyledTextRunVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.

Enums§

OptionClipboardContent
OptionStyledTextRun
StyledTextRunVecDestructor

Type Aliases§

StyledTextRunVecDestructorType