diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
| commit | 9ba4d2c134479aad876a0e2ac4cd1622a353109e (patch) | |
| tree | a94e0e6ae53a1ba440e869fca26cc2ea0b179057 /library/src/shared | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'library/src/shared')
| -rw-r--r-- | library/src/shared/ext.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |
