diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-19 01:16:35 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-19 01:16:35 +0100 |
| commit | b4b022940b908d8fe490b9f4f68bc60dcfb76cd2 (patch) | |
| tree | bc93a2f51295f97f971466ab87bdd763c0ed6002 /library/src/layout/pad.rs | |
| parent | ba384e5bb6c2455eb431f6e1fcc8b98aca1e9879 (diff) | |
Syntax and example sections
Diffstat (limited to 'library/src/layout/pad.rs')
| -rw-r--r-- | library/src/layout/pad.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/src/layout/pad.rs b/library/src/layout/pad.rs index 94492f83..1326ae22 100644 --- a/library/src/layout/pad.rs +++ b/library/src/layout/pad.rs @@ -5,18 +5,25 @@ use crate::prelude::*; /// # Parameters /// - body: Content (positional, required) /// The content to pad at the sides. +/// /// - left: Rel<Length> (named) /// The padding at the left side. +/// /// - right: Rel<Length> (named) /// The padding at the right side. +/// /// - top: Rel<Length> (named) /// The padding at the top side. +/// /// - bottom: Rel<Length> (named) /// The padding at the bottom side. +/// /// - x: Rel<Length> (named) /// The horizontal padding. Both `left` and `right` take precedence over this. +/// /// - y: Rel<Length> (named) /// The vertical padding. Both `top` and `bottom` take precedence over this. +/// /// - rest: Rel<Length> (named) /// The padding for all sides. All other parameters take precedence over this. /// |
