diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:09:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:09:39 +0200 |
| commit | 5c04185892947969005ffcf6412d7190dafb3a79 (patch) | |
| tree | feef0dcb373261e44a31242584635f11c6cc1701 /src/layout | |
| parent | e2d17aa9d9491b339e6200c97b52f7ade51fa1d8 (diff) | |
Reformat some things 🧺
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/actions.rs | 3 | ||||
| -rw-r--r-- | src/layout/flex.rs | 4 | ||||
| -rw-r--r-- | src/layout/mod.rs | 3 | ||||
| -rw-r--r-- | src/layout/text.rs | 2 |
4 files changed, 3 insertions, 9 deletions
diff --git a/src/layout/actions.rs b/src/layout/actions.rs index 3eb85e50..069c3f7c 100644 --- a/src/layout/actions.rs +++ b/src/layout/actions.rs @@ -1,7 +1,8 @@ -//! Drawing and cofiguration actions used by layouts. +//! Drawing and cofiguration actions composing layouts. use std::fmt::{self, Display, Formatter}; use std::io::{self, Write}; + use crate::size::Size2D; use super::Layout; use LayoutAction::*; diff --git a/src/layout/flex.rs b/src/layout/flex.rs index 68d39004..704281d3 100644 --- a/src/layout/flex.rs +++ b/src/layout/flex.rs @@ -1,10 +1,6 @@ -//! Flexible and lazy layouting of boxes. - -use crate::size::{Size, Size2D}; use super::*; - /// Finishes a flex layout by justifying the positions of the individual boxes. #[derive(Debug)] pub struct FlexLayouter { diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 1bd11e14..c8d10141 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1,4 +1,4 @@ -//! The layouting engine. +//! The core layouting engine. use std::borrow::Cow; use std::io::{self, Write}; @@ -12,7 +12,6 @@ use crate::size::{Size, Size2D, SizeBox}; use crate::syntax::{SyntaxTree, Node, FuncCall}; use crate::style::TextStyle; - mod text; mod stacked; mod flex; diff --git a/src/layout/text.rs b/src/layout/text.rs index 6cbe3b8e..cf258029 100644 --- a/src/layout/text.rs +++ b/src/layout/text.rs @@ -1,5 +1,3 @@ -//! Layouting of text into boxes. - use toddle::query::{FontQuery, SharedFontLoader}; use toddle::tables::{Header, CharMap, HorizontalMetrics}; |
