diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:08:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:11:37 +0100 |
| commit | f5f7df7247ae29800e0290774a50942e2485beea (patch) | |
| tree | 57253ba51efdae3ac8e4eea722428924625b514c /library/src/layout/columns.rs | |
| parent | b8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff) | |
Documentation
Diffstat (limited to 'library/src/layout/columns.rs')
| -rw-r--r-- | library/src/layout/columns.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/library/src/layout/columns.rs b/library/src/layout/columns.rs index 6154cd14..e8ae5f35 100644 --- a/library/src/layout/columns.rs +++ b/library/src/layout/columns.rs @@ -1,17 +1,18 @@ use crate::prelude::*; use crate::text::TextNode; +/// # Columns /// Separate a region into multiple equally sized columns. /// -/// # Parameters +/// ## Parameters /// - count: usize (positional, required) /// The number of columns. /// /// - body: Content (positional, required) /// The content that should be layouted into the columns. /// -/// # Tags -/// - layout +/// ## Category +/// layout #[func] #[capable(Layout)] #[derive(Debug, Hash)] @@ -112,15 +113,16 @@ impl Layout for ColumnsNode { } } +/// # Column Break /// A column break. /// -/// # Parameters +/// ## Parameters /// - weak: bool (named) /// If true, the column break is skipped if the current column is already /// empty. /// -/// # Tags -/// - layout +/// ## Category +/// layout #[func] #[capable(Behave)] #[derive(Debug, Hash)] |
