zed/crates/ui
Nathan Sobo 39fb1d567d
Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101)
We're planning to associate "selection sources" with global element ids
to allow arbitrary UI text to be selected in GPUI. Previously, global
ids were not exposed outside the framework and we entangled management
of the element id stack with element state access. This was more
acceptable when element state was the only place we used global element
ids, but now that we're planning to use them more places, it makes sense
to deal with element identity as a first-class part of the element
system. We now ensure that the stack of element ids which forms the
current global element id is correctly managed in every phase of element
layout and paint and make the global id available to each element
method. In a subsequent PR, we'll use the global element id as part of
implementing arbitrary selection for UI text.

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
2024-04-28 13:59:21 -06:00
..
docs Update crates/ui/docs/hello-world.md TODO with explanation of SharedString usage (#10664) 2024-04-17 13:04:28 +03:00
src Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101) 2024-04-28 13:59:21 -06:00
Cargo.toml windows: Fix title bar height when maximized (#9449) 2024-03-19 20:54:00 -07:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00