Antonio Scandurra and Nathan Sobo
f0775aeebc
Rename Hooks to Hook
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-03 17:56:01 +02:00
Antonio Scandurra
776f7dd5a9
Add a new Hooks element to invoke a callback before layout
...
This is useful to cap the width of sidebars when dragging the
resize handles beyond the maximum bounds of the sidebar.
2021-09-03 12:18:31 +02:00
Antonio Scandurra
0490c609fb
Introduce a visible_bounds parameter to Element::paint
...
We're not using this yet but this will be useful to avoid rendering
unnecessary portions of text.
2021-09-02 11:42:23 +02:00
Antonio Scandurra and Nathan Sobo
20e18ac3ad
WIP
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-01 16:19:01 +02:00
Antonio Scandurra
171627b63a
Add a new zero-sized Overlay element and paint it in the foreground
2021-08-30 15:42:03 +02:00
Antonio Scandurra and Nathan Sobo
4388c45029
Re-render all list elements when refreshing windows
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-26 16:36:56 +02:00
Nathan Sobo and Max Brunsfeld
33dbbf271e
WIP
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 18:09:36 -07:00
Antonio Scandurra and Nathan Sobo
a182db863f
WIP: Render dummy chat messages to test List
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-23 17:29:46 +02:00
Antonio Scandurra and Nathan Sobo
2c3ba00d3e
Remove vestiges of after_layout
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-23 15:23:06 +02:00
Nathan Sobo
d68e0b0b97
Remove after_layout from Element trait
...
Now that layout takes a MutableAppContext we don't need an after_layout phase.
2021-08-20 16:40:45 -06:00
Nathan Sobo
c3dda14490
WIP: Move sum_tree module into gpui so we can use it in List
2021-08-20 16:18:39 -06:00
Max Brunsfeld and Nathan Sobo
e080739d57
Remove use of replace_with crate for managing element lifecycles
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-02 13:11:11 -07:00
11285f3762
Pass a MutableAppContext to Element::layout and ::dispatch_event
...
We need to mutate the app in these cases to relay layout state, so this just makes things easier. We won't be able to perform layout in parallel but it's questionable whether we'll ever actually do that. If we do, we can revisit.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-07-23 10:52:08 -06:00
Max Brunsfeld
6ef447866a
Rename context parameters to cx in gpui
2021-05-28 15:32:35 -07:00
Max Brunsfeld and Nathan Sobo
139bcb8304
Rename foo/mod.rs files too foo.rs
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-28 14:41:58 -07:00