pub struct Auxiliary {
pub panel: PanelId,
pub screen: String,
pub rect: [f32; 4],
pub tabs: Vec<PanelId>,
pub shown: usize,
pub maximized: bool,
pub fullscreen: bool,
}Expand description
A panel detached into its own window, and the panels that joined it there as tabs.
Saved as the window it was before tabs (its first panel under
panel), the others under tabs: an application that predates them
reads the first panel and puts the others back as it does any panel
missing from a layout (docked in its default area).
use egui_pop_model::ids::PanelId;
use egui_pop_model::layout::Auxiliary;
let log = PanelId::from_static("app.log");
let notes = PanelId::from_static("app.notes");
let mut w = Auxiliary::window(log.clone(), "main", [0.0, 0.0, 640.0, 480.0]);
w.join(notes.clone());
assert_eq!(w.panels().count(), 2);
assert_eq!(w.shown(), ¬es);Fields§
§panel: PanelIdThe panel detached first: it names the window.
screen: StringThe screen it was on, by name, and its position there.
rect: [f32; 4]§tabs: Vec<PanelId>The panels that joined the window as tabs, after panel.
shown: usizeThe shown tab: 0 for panel, n for tabs[n - 1].
maximized: boolMaximized: it opens so again, rect keeping its normal size.
fullscreen: boolIn full screen: it opens so again.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Auxiliary
impl<'de> Deserialize<'de> for Auxiliary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Auxiliary
Auto Trait Implementations§
impl Freeze for Auxiliary
impl RefUnwindSafe for Auxiliary
impl Send for Auxiliary
impl Sync for Auxiliary
impl Unpin for Auxiliary
impl UnsafeUnpin for Auxiliary
impl UnwindSafe for Auxiliary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more