Implement Layout::position

This commit is contained in:
Héctor Ramón Jiménez 2020-06-05 14:00:31 +02:00
parent 4e1e0e0890
commit e8e656b330

View File

@ -34,7 +34,14 @@ impl<'a> Layout<'a> {
}
}
/// Gets the bounds of the [`Layout`].
/// Returns the position of the [`Layout`].
///
/// [`Layout`]: struct.Layout.html
pub fn position(&self) -> Point {
self.position
}
/// Returns the bounds of the [`Layout`].
///
/// The returned [`Rectangle`] describes the position and size of a
/// [`Node`].