From 9ba4d2c134479aad876a0e2ac4cd1622a353109e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 14 Dec 2022 10:09:44 +0100 Subject: New macro setup --- library/src/shared/ext.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'library/src/shared') diff --git a/library/src/shared/ext.rs b/library/src/shared/ext.rs index 23db71f9..ba3579e7 100644 --- a/library/src/shared/ext.rs +++ b/library/src/shared/ext.rs @@ -98,6 +98,7 @@ impl StyleMapExt for StyleMap { } /// Fill the frames resulting from content. +#[capable(Layout)] #[derive(Debug, Hash)] struct FillNode { /// How to fill the frames resulting from the `child`. @@ -106,7 +107,7 @@ struct FillNode { child: Content, } -#[node(Layout)] +#[node] impl FillNode {} impl Layout for FillNode { @@ -126,6 +127,7 @@ impl Layout for FillNode { } /// Stroke the frames resulting from content. +#[capable(Layout)] #[derive(Debug, Hash)] struct StrokeNode { /// How to stroke the frames resulting from the `child`. @@ -134,7 +136,7 @@ struct StrokeNode { child: Content, } -#[node(Layout)] +#[node] impl StrokeNode {} impl Layout for StrokeNode { -- cgit v1.2.3