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-04-24 17:41:55 -07:00
2023-06-02 22:02:19 -04:00
2023-06-09 18:02:20 -04:00
2023-06-07 16:10:45 -07:00
2023-06-15 18:01:30 +02:00
2023-06-20 16:05:23 -07:00
2023-03-28 20:13:17 -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-05-22 23:11:27 -06:00
2023-06-21 15:03:08 -04:00
2023-05-08 11:42:00 -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-07 14:20:01 -07:00
2023-04-24 17:41:55 -07:00
2023-02-27 12:06:10 -08:00
2023-05-25 14:41:09 -04:00
2023-05-20 09:54:38 -06:00
2023-06-25 07:51:50 -06:00
2023-06-25 07:51:50 -06:00
2023-04-24 17:41:55 -07:00
2023-05-20 09:54:38 -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-04-24 17:41:55 -07:00
2023-06-21 13:20:42 +03:00
2023-06-04 23:34:22 -04:00
2023-04-27 14:29:11 +02:00
2023-04-28 16:42:36 -04:00
2023-06-20 16:05:20 -07:00
2023-05-20 09:54:38 -06:00
2023-04-24 17:41:55 -07:00
2023-06-02 22:02:19 -04:00
2023-06-02 22:02:19 -04: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-04-24 17:41:55 -07:00
2023-06-02 22:02:19 -04:00
2023-04-24 17:41:55 -07:00
2023-04-24 17:41:55 -07:00
2023-06-19 19:49:33 -06:00
2023-06-02 22:02:19 -04:00
2023-06-06 19:18:22 +02: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-07 14:12:58 -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