Skip to main content

Module selectable

Module selectable 

Source
Expand description

Text you can select with the pointer and copy out of.

render handles pointer selection; surface adds keyboard focus and copy. Selection state stays with the caller so lists can share one selection.

Structs§

Copy

Enums§

Pointer
What the pointer did over the text.

Functions§

copied
The text a selection covers, as it would be pasted.
render
Render doc with selection painted in it, reporting what the pointer does.
surface
Wrap selectable content with focus-on-click and platform copy shortcuts. Rebuild when the document or selection changes. Keep focus stable per surface.