summaryrefslogtreecommitdiffstats
path: root/native/src/layout.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-16 13:22:00 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-07-08 10:41:16 +0200
commitf064f0482b653a1fbee4afbddcecf91e3a399004 (patch)
tree2a468e4dc80be13cbf0ae7dd703607010e16697c /native/src/layout.rs
parentc901f40fd6c5aa39f4dc056b2b59bc7133b287e6 (diff)
downloadiced-f064f0482b653a1fbee4afbddcecf91e3a399004.tar.gz
iced-f064f0482b653a1fbee4afbddcecf91e3a399004.tar.bz2
iced-f064f0482b653a1fbee4afbddcecf91e3a399004.zip
Introduce `Layer` trait
Diffstat (limited to '')
-rw-r--r--native/src/layout.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/native/src/layout.rs b/native/src/layout.rs
index 4a3ab94a..178f0f24 100644
--- a/native/src/layout.rs
+++ b/native/src/layout.rs
@@ -34,6 +34,13 @@ impl<'a> Layout<'a> {
}
}
+ /// Gets the position of the [`Layout`].
+ ///
+ /// [`Layout`]: struct.Layout.html
+ pub fn position(&self) -> Point {
+ self.position
+ }
+
/// Gets the bounds of the [`Layout`].
///
/// The returned [`Rectangle`] describes the position and size of a