Skip to main content

Module selection

Module selection 

Source
Expand description

Selectable text as a fluent modifier on Text views.

Mirrors Compose-style selection for a single Text:

  • Drag to select (byte range, multi-line highlight)
  • Double-tap -> select word under pointer
  • Triple-tap -> select all
  • Shift+click / shift+drag -> extend from previous anchor
  • Primary selection (middle-click paste) + Ctrl/Cmd+C via Action::Copy

The highlight itself is painted by the layout engine from the node’s real text layout (Compose’s SelectionController drawing getPathForRange), so it tracks wrapping, line height and text alignment.

Traits§

SelectableTextExt
Fluent selectable modifier for Text views.

Functions§

SelectableText
Backward-compatible free function.