Implement Layout::position
This commit is contained in:
parent
4e1e0e0890
commit
e8e656b330
@ -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`].
|
||||
|
Loading…
x
Reference in New Issue
Block a user