summaryrefslogtreecommitdiffstats
path: root/native/src/layout
diff options
context:
space:
mode:
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;