Add unfocus method to pane_grid::State
This commit is contained in:
parent
cee8400663
commit
e50c61f7ff
1 changed files with 7 additions and 0 deletions
|
|
@ -193,6 +193,13 @@ impl<T> State<T> {
|
||||||
self.internal.focus(pane);
|
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
|
/// Splits the given [`Pane`] into two in the given [`Axis`] and
|
||||||
/// initializing the new [`Pane`] with the provided internal state.
|
/// initializing the new [`Pane`] with the provided internal state.
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue