Files
oak-gpui/crates
Nathan Sobo bede668b14 Add a derive macro for Element
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.
2023-06-25 07:51:50 -06:00
..
2023-06-20 16:05:23 -07:00
…
…
2023-06-20 16:05:23 -07:00
2023-06-20 16:05:23 -07:00
…
…
…
2023-06-25 07:51:50 -06:00
2023-06-15 19:28:59 -07:00
…
2023-06-09 11:50:15 -07:00
2023-06-22 17:59:56 +02:00
…
2023-06-25 01:43:58 +03:00
2023-06-22 18:06:52 +02:00