diff options
author | 2020-05-09 00:16:07 +0200 | |
---|---|---|
committer | 2020-05-22 21:55:31 +0200 | |
commit | f3d54a0f332c8da3aca3cc1b37e63cfa96d7a526 (patch) | |
tree | 5d8258d72b81ad24e89a1e595bd73c7e84056854 /native/src/widget/pane_grid/state.rs | |
parent | d1f2a184394e0439db58918f88f51745fdaf59fc (diff) | |
download | iced-f3d54a0f332c8da3aca3cc1b37e63cfa96d7a526.tar.gz iced-f3d54a0f332c8da3aca3cc1b37e63cfa96d7a526.tar.bz2 iced-f3d54a0f332c8da3aca3cc1b37e63cfa96d7a526.zip |
Expose `Node` and `State::layout` for `PaneGrid`
Diffstat (limited to 'native/src/widget/pane_grid/state.rs')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index 6bb3fd9c..5cb41984 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -102,6 +102,13 @@ impl<T> State<T> { self.panes.iter_mut() } + /// Returns the layout tree stored in the [`State`]. + /// + /// [`State`]: struct.State.html + pub fn layout(&self) -> &Node { + &self.internal.layout + } + /// Returns the active [`Pane`] of the [`State`], if there is one. /// /// A [`Pane`] is active if it is focused and is __not__ being dragged. |