diff options
author | 2024-04-25 01:39:34 +0200 | |
---|---|---|
committer | 2024-04-25 01:39:34 +0200 | |
commit | 0c74d2645649a88799a894ed684a728d135043fa (patch) | |
tree | 259174b70c65f9c17e8b2157a370169df244722f /core/src/layout.rs | |
parent | 5ef593ce53e0ba53d51809f198a02743f87a6ccd (diff) | |
download | iced-0c74d2645649a88799a894ed684a728d135043fa.tar.gz iced-0c74d2645649a88799a894ed684a728d135043fa.tar.bz2 iced-0c74d2645649a88799a894ed684a728d135043fa.zip |
Implement `Stack` widget
It can be used to stack elements on top of each other!
Diffstat (limited to 'core/src/layout.rs')
-rw-r--r-- | core/src/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/layout.rs b/core/src/layout.rs index 95720aba..98d05602 100644 --- a/core/src/layout.rs +++ b/core/src/layout.rs @@ -54,7 +54,7 @@ impl<'a> Layout<'a> { } /// Returns an iterator over the [`Layout`] of the children of a [`Node`]. - pub fn children(self) -> impl Iterator<Item = Layout<'a>> { + pub fn children(self) -> impl DoubleEndedIterator<Item = Layout<'a>> { self.node.children().iter().map(move |node| { Layout::with_offset( Vector::new(self.position.x, self.position.y), |