summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/widget/pane_grid/state.rs10
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,