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:20 -07:00
2023-06-20 16:05:20 -07:00
2023-06-20 16:05:20 -07:00
2023-06-09 18:02:20 -04:00
2023-06-15 18:01:30 +02: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-20 16:05:20 -07:00
2023-06-20 16:05:20 -07:00
2023-06-21 15:03:08 -04:00
2023-06-22 06:38:57 -06:00
2023-06-20 16:05:20 -07:00
2023-06-20 16:05:20 -07:00
2023-06-25 07:51:50 -06:00
2023-06-25 07:51:50 -06:00
2023-06-20 08:37:55 -06:00
2023-06-20 16:05:20 -07:00
2023-06-20 16:05:20 -07:00
2023-06-15 19:28:59 -07:00
2023-06-21 13:20:42 +03:00
2023-06-20 16:05:20 -07:00
2023-06-20 08:37:55 -06:00
2023-06-20 16:05:23 -07:00
2023-06-20 16:05:23 -07:00
2023-06-20 16:05:20 -07:00
2023-06-19 19:49:33 -06:00
2023-06-09 11:50:15 -07:00
2023-06-20 16:05:23 -07:00
2023-06-22 17:59:56 +02:00
2023-06-19 19:49:33 -06:00
2023-06-19 19:49:33 -06:00
2023-06-22 17:58:56 +02:00
2023-06-20 16:05:20 -07:00
2023-06-25 01:43:58 +03:00
2023-06-20 16:05:20 -07:00
2023-06-21 15:03:08 -04:00
2023-06-22 18:06:52 +02:00
2023-06-21 15:03:08 -04:00