Implement Layout::position
This commit is contained in:
parent
4e1e0e0890
commit
e8e656b330
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue