pub struct WindowLayoutState<W: Window<I>, I: ApplicationInfo> { /* private fields */ }Expand description
Manages the current layout and focus of Windows on the screen.
Implementations§
Source§impl<W, I> WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
impl<W, I> WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
Sourcepub fn as_description(&self) -> WindowLayoutRoot<I>
pub fn as_description(&self) -> WindowLayoutRoot<I>
Convert this layout to a serializable summary of its windows and splits.
Sourcepub fn from_target(
&self,
target: &OpenTarget<I::WindowId>,
ctx: &EditContext,
store: &mut Store<I>,
) -> UIResult<Self, I>
pub fn from_target( &self, target: &OpenTarget<I::WindowId>, ctx: &EditContext, store: &mut Store<I>, ) -> UIResult<Self, I>
Create a new instance containing a single Window displaying some content.
Trait Implementations§
Source§impl<W, C, I> Jumpable<C, I> for WindowLayoutState<W, I>
impl<W, C, I> Jumpable<C, I> for WindowLayoutState<W, I>
Source§impl<W, I> WindowContainer<EditContext, Store<I>, I> for WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
impl<W, I> WindowContainer<EditContext, Store<I>, I> for WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
Source§fn window_command(
&mut self,
action: &WindowAction<I>,
ctx: &EditContext,
store: &mut Store<I>,
) -> UIResult<EditInfo, I>
fn window_command( &mut self, action: &WindowAction<I>, ctx: &EditContext, store: &mut Store<I>, ) -> UIResult<EditInfo, I>
Execute a window action.
Source§impl<W, I> WindowCount for WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
impl<W, I> WindowCount for WindowLayoutState<W, I>where
W: Window<I>,
I: ApplicationInfo,
Auto Trait Implementations§
impl<W, I> Freeze for WindowLayoutState<W, I>
impl<W, I> RefUnwindSafe for WindowLayoutState<W, I>where
I: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, I> Send for WindowLayoutState<W, I>
impl<W, I> Sync for WindowLayoutState<W, I>
impl<W, I> Unpin for WindowLayoutState<W, I>where
I: Unpin,
impl<W, I> UnsafeUnpin for WindowLayoutState<W, I>
impl<W, I> UnwindSafe for WindowLayoutState<W, I>where
I: UnwindSafe,
W: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more