Add unfocus method to pane_grid::State

This commit is contained in:
Héctor Ramón Jiménez 2020-06-30 02:53:15 +02:00
parent cee8400663
commit e50c61f7ff

View File

@ -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.
///