diff options
author | 2020-05-22 22:15:44 +0200 | |
---|---|---|
committer | 2020-05-23 01:51:34 +0200 | |
commit | 230bd6f7475752352ca9985802db0633e3508d9f (patch) | |
tree | 55ba66173ef8b5c34784945609daf5b6dc77d6aa /native/src/widget/pane_grid/state.rs | |
parent | 2ab7341fa50865d6f0c26da59f945321ef839c5f (diff) | |
download | iced-230bd6f7475752352ca9985802db0633e3508d9f.tar.gz iced-230bd6f7475752352ca9985802db0633e3508d9f.tar.bz2 iced-230bd6f7475752352ca9985802db0633e3508d9f.zip |
Write documentation for new `pane_grid` API
Diffstat (limited to 'native/src/widget/pane_grid/state.rs')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index 41f3cffd..4b13fb8e 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -56,6 +56,10 @@ impl<T> State<T> { (Self::with_content(Content::Pane(first_pane_state)), Pane(0)) } + /// Creates a new [`State`] with the given [`Content`]. + /// + /// [`State`]: struct.State.html + /// [`Content`]: enum.Content.html pub fn with_content(content: impl Into<Content<T>>) -> Self { let mut panes = HashMap::new(); |