egui/crates/egui_demo_lib/src
Emil Ernerfeldt 41aad74552
Cross-widget text select (#3870)
* Closes https://github.com/emilk/egui/issues/3816


![cross-widget-text-selection](https://github.com/emilk/egui/assets/1148717/5582b9d2-8b04-47b7-9637-f48e44064a70)

Turn off with `style.interaction.multi_widget_text_select`.

There is an API for this in `LabelSelectionState`, but it's pretty
bare-bones.

This became really hairy implementation-wise, but it works decently
well.

# Limitations
* Drag-select to scroll doesn't work
* A selection disappears if you scroll past one of its end-points
* Only the text of labels and links are selectable
 
## TODO
* [x] An option to turn it off
* [x] An API for querying about the selected text, and to deselect it.
* [x] Scrolling past selection behaves weird
* [x] Shift-click to select a range
2024-01-24 15:45:22 +01:00
..
demo Cross-widget text select (#3870) 2024-01-24 15:45:22 +01:00
easy_mark Refactor: move text selection logic to own module (#3843) 2024-01-19 15:38:53 +01:00
color_test.rs Final polish for new image loading (#3328) 2023-09-13 16:27:08 +02:00
lib.rs Fix some clippy 1.75 lints (#3754) 2023-12-30 11:23:21 +01:00