#[non_exhaustive]pub struct Window {
pub slot: usize,
pub last_rect: Option<LayoutRect>,
}Expand description
Per-window scroll + geometry state.
#[non_exhaustive] — additional fields may be added in minor releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.slot: usizeIndex into the host’s slot list for the buffer this window displays.
last_rect: Option<LayoutRect>The rect this window occupied in the last rendered frame. Written
by the renderer every frame; used by direction-navigation.
None until the first render.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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