Improve documentation for new Node
methods
This commit is contained in:
parent
ddceb295f4
commit
8f83c805b1
@ -54,10 +54,9 @@ impl Node {
|
|||||||
&self.children
|
&self.children
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Aligns item according to [`Align`] and [`Size`].
|
/// Aligns the [`Node`] in the given space.
|
||||||
///
|
///
|
||||||
/// [`Align`]: ../enum.Align.html
|
/// [`Node`]: struct.Node.html
|
||||||
/// [`Size`]: ../struct.Size.html
|
|
||||||
pub fn align(
|
pub fn align(
|
||||||
&mut self,
|
&mut self,
|
||||||
horizontal_alignment: Align,
|
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) {
|
pub fn move_to(&mut self, position: Point) {
|
||||||
self.bounds.x = position.x;
|
self.bounds.x = position.x;
|
||||||
self.bounds.y = position.y;
|
self.bounds.y = position.y;
|
||||||
|
Loading…
Reference in New Issue
Block a user