diff options
| author | 2020-06-30 02:53:15 +0200 | |
|---|---|---|
| committer | 2020-06-30 02:53:15 +0200 | |
| commit | e50c61f7ff8c7bd559afb66025eaded78ca423bb (patch) | |
| tree | b26682a519ecb36d2cda12e8efd11bdb61d12c3a /native/src | |
| parent | cee8400663ac9a3ed5e56863021aabdbc4596198 (diff) | |
| download | iced-e50c61f7ff8c7bd559afb66025eaded78ca423bb.tar.gz iced-e50c61f7ff8c7bd559afb66025eaded78ca423bb.tar.bz2 iced-e50c61f7ff8c7bd559afb66025eaded78ca423bb.zip | |
Add `unfocus` method to `pane_grid::State`
Diffstat (limited to '')
| -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 57fdbc55..a4cfb6f6 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -193,6 +193,13 @@ impl<T> State<T> {          self.internal.focus(pane);      } +    /// Unfocuses the current focused [`Pane`]. +    /// +    /// [`Pane`]: struct.Pane.html +    pub fn unfocus(&mut self) { +        self.internal.unfocus(); +    } +      /// Splits the given [`Pane`] into two in the given [`Axis`] and      /// initializing the new [`Pane`] with the provided internal state.      /// | 
