| Crates.io | rat-reloc |
| lib.rs | rat-reloc |
| version | 2.0.2 |
| created_at | 2024-11-01 19:51:37.236351+00 |
| updated_at | 2026-01-06 08:19:51.72308+00 |
| description | relocate widgets after rendering |
| homepage | |
| repository | https://github.com/thscharler/rat-salsa |
| max_upload_size | |
| id | 1432242 |
| size | 16,881 |
This crate is a part of rat-salsa.
This crate defines the trait RelocatableState
Many widgets in rat-widget store one or more areas for mouse interaction.
And there are widgets that render other widgets to a temp Buffer and later dump parts of it to the main render Buffer. And then all the stored areas in the widget-state are wrong.
The RelocatableState trait gives the widgets that use such temp Buffers a hook to correct for any movement and clipping that has happened.