diff options
author | 2020-02-14 23:23:45 +0100 | |
---|---|---|
committer | 2020-02-14 23:23:45 +0100 | |
commit | 8f83c805b15230a2f35002cfff88d9653ee08690 (patch) | |
tree | 2074c0453d01515163603be8d94b105f46593465 /native/src/layout | |
parent | ddceb295f43154543b7f90bbd84964ede0901dbd (diff) | |
download | iced-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.rs | 11 |
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; |