diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-15 18:15:36 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-15 18:15:36 +0200 |
| commit | a3c667895e4e5d5673931415397523b9615008d3 (patch) | |
| tree | fc416e7ceeff0fa45f7ddfaaf74cd3354f09048a /src/layout/flex.rs | |
| parent | 0727713424878fed3936d4b6e7cecd4f0c58d888 (diff) | |
Refactor the main layouter ♻
Diffstat (limited to 'src/layout/flex.rs')
| -rw-r--r-- | src/layout/flex.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs index d6739f1b..a4b3ed6d 100644 --- a/src/layout/flex.rs +++ b/src/layout/flex.rs @@ -1,6 +1,6 @@ use super::*; -/// Flex-layouting of boxes. +/// Layouts boxes flex-like. /// /// The boxes are arranged in "lines", each line having the height of its /// biggest box. When a box does not fit on a line anymore horizontally, @@ -74,9 +74,9 @@ impl FlexLayouter { } } - /// Get a reference to this layouter's context. - pub fn ctx(&self) -> &FlexContext { - &self.ctx + /// This layouter's context. + pub fn ctx(&self) -> FlexContext { + self.ctx } /// Add a sublayout. |
