ZIm/crates/gpui/src
Antonio Scandurra 6a7761e620
Merge ElementContext into WindowContext (#10979)
The new `ElementContext` was originally introduced to ensure the element
APIs could only be used inside of elements. Unfortunately, there were
many places where some of those APIs needed to be used, so
`WindowContext::with_element_context` was introduced, which defeated the
original safety purposes of having a specific context for elements.

This pull request merges `ElementContext` into `WindowContext` and adds
(debug) runtime checks to APIs that can only be used during certain
phases of element drawing.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
2024-04-25 12:54:39 +02:00
..
app Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
elements Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
keymap Make keymaps reusable across platforms (#10811) 2024-04-22 13:24:25 -07:00
platform Update blade with transparency and exclusive fullscreen fixes (#10880) 2024-04-24 13:02:11 -07:00
text_system Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
window Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
action.rs gpui-macros: Hide autogenerated action types/functions (#10417) 2024-04-11 15:38:47 +02:00
app.rs linux: Primary clipboard (#10534) 2024-04-18 14:54:18 -07:00
arena.rs Log if element arena allocation is >80% 2024-01-24 11:03:28 +01:00
asset_cache.rs gpui: Add SVG rendering to img element and generic asset cache (#9931) 2024-03-29 17:09:49 -07:00
assets.rs Revert "Revert "Revert dependency updates in #9836 (#10089)"" 2024-04-02 13:12:38 -06:00
bounds_tree.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
color.rs GPUI custom window prompts (#8980) 2024-03-06 18:15:06 -08:00
element.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
executor.rs Semantic Index (#10329) 2024-04-12 11:40:59 -06:00
geometry.rs Close the backticks in gpui geometry examples (#10579) 2024-04-15 16:52:19 -07:00
gpui.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
input.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
interactive.rs WIP: Refactor Linux platform implementation (#10227) 2024-04-08 16:40:35 -07:00
key_dispatch.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
keymap.rs chore: Bump Rust version to 1.76 (#7592) 2024-02-09 10:45:39 +02:00
platform.rs linux: Primary clipboard (#10534) 2024-04-18 14:54:18 -07:00
prelude.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
scene.rs Add an animation to the LSP checking indicator (#9463) 2024-03-19 10:16:18 -07:00
shared_string.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
styled.rs New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00
subscription.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
svg_renderer.rs Update resvg to fix panic (#10393) 2024-04-10 20:12:05 -06:00
taffy.rs Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00
test.rs Throttle the sending of UpdateFollowers messages (#8918) 2024-03-06 14:58:41 +01:00
text_system.rs Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00
util.rs Pull out fluent builder helpers into re-usable trait 2024-01-18 15:31:31 -08:00
view.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
window.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00