diff options
author | 2020-07-10 00:35:15 +0200 | |
---|---|---|
committer | 2020-07-10 00:35:15 +0200 | |
commit | 46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3 (patch) | |
tree | 66449eec70609f8fc03a5e4e90ce39a7346d02fb /native/src/layout.rs | |
parent | 5c4f5ae5ecb36703a95cafb2cd58692529c9466d (diff) | |
parent | 3c5921f30c17bcbe0af74a30b6a256a3fa03515c (diff) | |
download | iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.tar.gz iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.tar.bz2 iced-46ce3a1f0004ddc527ba3de1ffe3dac3f41a06c3.zip |
Merge pull request #442 from hecrj/feature/pane-grid-titlebar
Title bar support for `PaneGrid`
Diffstat (limited to 'native/src/layout.rs')
-rw-r--r-- | native/src/layout.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/native/src/layout.rs b/native/src/layout.rs index 4a3ab94a..93d95e17 100644 --- a/native/src/layout.rs +++ b/native/src/layout.rs @@ -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`]. |