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/layout/place.rs | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'library/src/layout/place.rs')
| -rw-r--r-- | library/src/layout/place.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/layout/place.rs b/library/src/layout/place.rs index 28d231b7..4c9c0a46 100644 --- a/library/src/layout/place.rs +++ b/library/src/layout/place.rs @@ -1,10 +1,12 @@ use crate::prelude::*; /// Place content at an absolute position. +#[func] +#[capable(Layout, Behave)] #[derive(Debug, Hash)] pub struct PlaceNode(pub Content, bool); -#[node(Layout, Behave)] +#[node] impl PlaceNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { let aligns = args.find()?.unwrap_or(Axes::with_x(Some(GenAlign::Start))); |
