Add pub method for getting maximized value

This commit is contained in:
Cory Forsstrom 2022-11-03 11:32:36 -07:00
parent 951fbc83ff
commit 853ff4bcf4

View file

@ -228,6 +228,13 @@ impl<T> State<T> {
pub fn restore(&mut self) {
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`].