summaryrefslogtreecommitdiffstats
path: root/native/src/layout
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 23:23:45 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 23:23:45 +0100
commit8f83c805b15230a2f35002cfff88d9653ee08690 (patch)
tree2074c0453d01515163603be8d94b105f46593465 /native/src/layout
parentddceb295f43154543b7f90bbd84964ede0901dbd (diff)
downloadiced-8f83c805b15230a2f35002cfff88d9653ee08690.tar.gz
iced-8f83c805b15230a2f35002cfff88d9653ee08690.tar.bz2
iced-8f83c805b15230a2f35002cfff88d9653ee08690.zip
Improve documentation for new `Node` methods
Diffstat (limited to 'native/src/layout')
-rw-r--r--native/src/layout/node.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs
index 777a57fb..11e93b72 100644
--- a/native/src/layout/node.rs
+++ b/native/src/layout/node.rs
@@ -54,10 +54,9 @@ impl Node {
&self.children
}
- /// Aligns item according to [`Align`] and [`Size`].
- ///
- /// [`Align`]: ../enum.Align.html
- /// [`Size`]: ../struct.Size.html
+ /// Aligns the [`Node`] in the given space.
+ ///
+ /// [`Node`]: struct.Node.html
pub fn align(
&mut self,
horizontal_alignment: Align,
@@ -85,9 +84,9 @@ impl Node {
}
}
- /// Move item to [`Point`].
+ /// Moves the [`Node`] to the given position.
///
- /// [`Point`]: ../struct.Point.html
+ /// [`Node`]: struct.Node.html
pub fn move_to(&mut self, position: Point) {
self.bounds.x = position.x;
self.bounds.y = position.y;