mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 10:20:51 +00:00
bede668b14
To turn any struct into a composite element, you can implement a render method with the following signature: fn render<V: View>(&mut self, view: &mut V, cx: &mut ViewContext<V>) -> AnyElement<V>; Then add #[derive(Element)] to the struct definition. This will make it easier to introduce higher-level components that are expressed in terms of other elements. |
||
---|---|---|
.. | ||
app | ||
elements | ||
keymap_matcher | ||
platform | ||
scene | ||
views | ||
app.rs | ||
assets.rs | ||
clipboard.rs | ||
color.rs | ||
elements.rs | ||
executor.rs | ||
font_cache.rs | ||
fonts.rs | ||
geometry.rs | ||
gpui.rs | ||
image_data.rs | ||
json.rs | ||
keymap_matcher.rs | ||
platform.rs | ||
scene.rs | ||
test.rs | ||
text_layout.rs | ||
util.rs | ||
views.rs |