Add pub method for getting maximized value
This commit is contained in:
parent
951fbc83ff
commit
853ff4bcf4
1 changed files with 7 additions and 0 deletions
|
|
@ -228,6 +228,13 @@ impl<T> State<T> {
|
||||||
pub fn restore(&mut self) {
|
pub fn restore(&mut self) {
|
||||||
let _ = self.maximized.take();
|
let _ = self.maximized.take();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the maximized [`Pane`] of the [`PaneGrid`].
|
||||||
|
///
|
||||||
|
/// [`PaneGrid`]: crate::widget::PaneGrid
|
||||||
|
pub fn maximized(&self) -> Option<Pane> {
|
||||||
|
self.maximized
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The internal state of a [`PaneGrid`].
|
/// The internal state of a [`PaneGrid`].
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue