pub struct TerminalFrame<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> TerminalFrame<'a>
impl<'a> TerminalFrame<'a>
Sourcepub fn panels(&self) -> impl Iterator<Item = PanelEntry<'_, Rect>>
pub fn panels(&self) -> impl Iterator<Item = PanelEntry<'_, Rect>>
All panels with quantized rects, in kind-grouped order.
Sourcepub fn overlays(&self) -> impl Iterator<Item = OverlayEntry<'_, Rect>>
pub fn overlays(&self) -> impl Iterator<Item = OverlayEntry<'_, Rect>>
Overlays with quantized rects.
Sourcepub fn focused_panels(
&self,
focused: Option<PanelId>,
) -> impl Iterator<Item = (PanelEntry<'_, Rect>, bool)>
pub fn focused_panels( &self, focused: Option<PanelId>, ) -> impl Iterator<Item = (PanelEntry<'_, Rect>, bool)>
Panels with focus flag and quantized rects.
A panel is focused when its id matches focused, or when it is a
decoration panel whose content kind matches the focused panel’s kind.
Sourcepub fn render_overlays(
&self,
frame: &mut Frame<'_>,
render: impl FnMut(&mut Frame<'_>, OverlayEntry<'_, Rect>),
)
pub fn render_overlays( &self, frame: &mut Frame<'_>, render: impl FnMut(&mut Frame<'_>, OverlayEntry<'_, Rect>), )
Clear underlying cells then render each overlay. Call after panels.
Sourcepub fn diff(&self) -> Option<LayoutDiff<'_>>
pub fn diff(&self) -> Option<LayoutDiff<'_>>
Layout diff (panel IDs, not rects). None for stateless resolves.
Sourcepub fn inner(&self) -> Option<&PanesFrame>
pub fn inner(&self) -> Option<&PanesFrame>
Raw panes Frame. None for stateless resolves.
Sourcepub fn overlay_failures(&self) -> &[(OverlayId, Arc<str>, AnchorFailure)]
pub fn overlay_failures(&self) -> &[(OverlayId, Arc<str>, AnchorFailure)]
Overlays that failed to anchor during the most recent resolve.
Auto Trait Implementations§
impl<'a> Freeze for TerminalFrame<'a>
impl<'a> RefUnwindSafe for TerminalFrame<'a>
impl<'a> !Send for TerminalFrame<'a>
impl<'a> !Sync for TerminalFrame<'a>
impl<'a> Unpin for TerminalFrame<'a>
impl<'a> UnsafeUnpin for TerminalFrame<'a>
impl<'a> UnwindSafe for TerminalFrame<'a>
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