From 420275793e04b41254bacdaedd8ca60fb2ffe63f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 19 Mar 2020 09:43:36 +0100 Subject: Fix minor documentation issues in `pane_grid` --- native/src/widget/pane_grid.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'native/src/widget/pane_grid.rs') diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs index d33573ca..5ced6610 100644 --- a/native/src/widget/pane_grid.rs +++ b/native/src/widget/pane_grid.rs @@ -93,6 +93,7 @@ impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer> { /// /// [`PaneGrid`]: struct.PaneGrid.html /// [`State`]: struct.State.html + /// [`Pane`]: struct.Pane.html pub fn new( state: &'a mut State, view: impl Fn( @@ -219,7 +220,7 @@ impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer> { /// If the function returns `None`, the key press event will be discarded /// without producing any message. /// - /// This function is particularly useful to implement hotkey interactions. + /// This method is particularly useful to implement hotkey interactions. /// For instance, you can use it to enable splitting, swapping, or resizing /// panes by pressing combinations of keys. /// @@ -319,12 +320,16 @@ pub enum DragEvent { #[derive(Debug, Clone, Copy)] pub struct ResizeEvent { /// The [`Split`] that is being dragged for resizing. + /// + /// [`Split`]: struct.Split.html pub split: Split, /// The new ratio of the [`Split`]. /// /// The ratio is a value in [0, 1], representing the exact position of a /// [`Split`] between two panes. + /// + /// [`Split`]: struct.Split.html pub ratio: f32, } -- cgit