summaryrefslogtreecommitdiff
path: root/library/src/layout/transform.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-17 16:24:29 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-17 16:24:29 +0100
commit35b16e545b4fce299edbc00c9a9754179fa51634 (patch)
treeeb1081e55187e59ff6482abc1ac2f1932606ef59 /library/src/layout/transform.rs
parentb6202b646a0d5ecced301d9bac8bfcaf977d7ee4 (diff)
Document parameters in comment
Diffstat (limited to 'library/src/layout/transform.rs')
-rw-r--r--library/src/layout/transform.rs24
1 files changed, 22 insertions, 2 deletions
diff --git a/library/src/layout/transform.rs b/library/src/layout/transform.rs
index f1a89d4c..3af44ca0 100644
--- a/library/src/layout/transform.rs
+++ b/library/src/layout/transform.rs
@@ -4,7 +4,16 @@ use crate::prelude::*;
/// Move content without affecting layout.
///
-/// Tags: layout.
+/// # Parameters
+/// - body: Content (positional, required)
+/// The content to move.
+/// - dx: Rel<Length> (named)
+/// The horizontal displacement of the content.
+/// - dy: Rel<Length> (named)
+/// The vertical displacement of the content.
+///
+/// # Tags
+/// - layout
#[func]
#[capable(Layout, Inline)]
#[derive(Debug, Hash)]
@@ -49,7 +58,18 @@ impl Inline for MoveNode {}
/// Transform content without affecting layout.
///
-/// Tags: layout.
+/// # Parameters
+/// - body: Content (positional, required)
+/// The content to transform.
+/// - angle: Angle (named)
+/// The amount of rotation.
+/// - x: Ratio (named)
+/// The horizontal scaling factor.
+/// - y: Ratio (named)
+/// The vertical scaling factor.
+///
+/// # Tags
+/// - layout
#[func]
#[capable(Layout, Inline)]
#[derive(Debug, Hash)]