pub struct WindowAreas {
pub window: String,
pub areas: Vec<(Area, Node)>,
pub folded: Vec<Area>,
}Expand description
An application window’s own areas: its centre, start and end sides and
bottom, each with its tabs and splits, as the main window has them
(Layout::windows).
use egui_pop_model::ids::PanelId;
use egui_pop_model::layout::Layout;
use egui_pop_model::panels::Area;
let notices = PanelId::from_static("app.notices");
let mut layout = Layout::default();
layout.place_in_window(¬ices, "library", Area::Bottom);
assert_eq!(layout.window_place(¬ices), Some(("library", Area::Bottom)));
assert!(layout.shows(¬ices));
assert_eq!(layout.area_of(¬ices), None);Fields§
§window: StringThe window’s id, as the application opened it.
areas: Vec<(Area, Node)>§folded: Vec<Area>Its areas folded to their strip (a side area) or out of sight (the
bottom), as the main window’s Layout::folded. A layout saved
before them reads as one with none.
Implementations§
Trait Implementations§
Source§impl Clone for WindowAreas
impl Clone for WindowAreas
Source§fn clone(&self) -> WindowAreas
fn clone(&self) -> WindowAreas
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowAreas
impl Debug for WindowAreas
Source§impl<'de> Deserialize<'de> for WindowAreas
impl<'de> Deserialize<'de> for WindowAreas
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
Source§impl PartialEq for WindowAreas
impl PartialEq for WindowAreas
Source§impl Serialize for WindowAreas
impl Serialize for WindowAreas
impl StructuralPartialEq for WindowAreas
Auto Trait Implementations§
impl Freeze for WindowAreas
impl RefUnwindSafe for WindowAreas
impl Send for WindowAreas
impl Sync for WindowAreas
impl Unpin for WindowAreas
impl UnsafeUnpin for WindowAreas
impl UnwindSafe for WindowAreas
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