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/visualize/line.rs | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'library/src/visualize/line.rs')
| -rw-r--r-- | library/src/visualize/line.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/visualize/line.rs b/library/src/visualize/line.rs index ef6ce2c3..ed6a3d92 100644 --- a/library/src/visualize/line.rs +++ b/library/src/visualize/line.rs @@ -1,6 +1,8 @@ use crate::prelude::*; /// Display a line without affecting the layout. +#[func] +#[capable(Layout, Inline)] #[derive(Debug, Hash)] pub struct LineNode { /// Where the line starts. @@ -9,7 +11,7 @@ pub struct LineNode { pub delta: Axes<Rel<Length>>, } -#[node(Layout, Inline)] +#[node] impl LineNode { /// How to stroke the line. #[property(resolve, fold)] |
