diff options
author | 2022-11-02 19:54:49 -0700 | |
---|---|---|
committer | 2022-11-02 20:04:19 -0700 | |
commit | 2f6c71d99a2c739c8b86bdf9d024e83ae994042d (patch) | |
tree | eb99af8c6ac5a4778069953955363af715206ea5 /native | |
parent | 988515d57f8c67a22ca0554f3e1327b26e5c6ecf (diff) | |
download | iced-2f6c71d99a2c739c8b86bdf9d024e83ae994042d.tar.gz iced-2f6c71d99a2c739c8b86bdf9d024e83ae994042d.tar.bz2 iced-2f6c71d99a2c739c8b86bdf9d024e83ae994042d.zip |
Fix doc links
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index b5bebc2e..70a2aa88 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -214,12 +214,16 @@ impl<T> State<T> { /// Maximize the given [`Pane`]. Only this pane will be rendered by the /// [`PaneGrid`] until [`Self::restore()`] is called. + /// + /// [`PaneGrid`]: crate::widget::PaneGrid pub fn maximize(&mut self, pane: &Pane) { self.maximized = Some(*pane); } /// Restore the currently maximized [`Pane`] to it's normal size. All panes - /// will be rendered by the [`PaneGrid`] + /// will be rendered by the [`PaneGrid`]. + /// + /// [`PaneGrid`]: crate::widget::PaneGrid pub fn restore(&mut self) { let _ = self.maximized.take(); } @@ -282,6 +286,8 @@ impl Internal { } /// The scoped internal state of the [`PaneGrid`] +/// +/// [`PaneGrid`]: crate::widget::PaneGrid #[derive(Debug)] pub enum Scoped<'a> { /// The state when all panes are visible @@ -338,7 +344,7 @@ impl Action { } impl<'a> Scoped<'a> { - /// The layout [`Node`] of the [`Scope`] state + /// The layout [`Node`] of the [`Scoped`] state pub fn layout(&self) -> &Node { match self { Scoped::All(Internal { layout, .. }) => layout, |