pub struct AgentViewLayout {Show 19 fields
pub status_bar: Rect,
pub startup_warnings: Rect,
pub tasks: Rect,
pub catalog: Rect,
pub scrollback: Rect,
pub todo: Rect,
pub queue: Rect,
pub btw: Rect,
pub turn_status: Rect,
pub banner: Rect,
pub plugin_cta: Rect,
pub follow_ups: Rect,
pub voice_recording: Rect,
pub prompt: Rect,
pub shortcuts: Rect,
pub scrollback_content: Rect,
pub scrollbar_x: u16,
pub timeline_x: u16,
pub timeline_width: u16,
}Expand description
Computed screen layout for the agent view.
Pure data — no rendering. Computed from screen area + appearance config +
per-pane heights via compute.
Fields§
§status_bar: Rect1-row top status bar.
startup_warnings: RectStartup warning banner.
tasks: RectBackground tasks pane.
catalog: RectSubagent / extension catalog pane.
scrollback: RectMain conversation scrollback (dominant).
todo: RectTodo checklist side-pane.
queue: RectPrompt queue side-pane.
btw: RectInline side-question panel.
turn_status: RectTurn status line.
Banner row above the prompt.
plugin_cta: RectInline CTA row.
follow_ups: RectFollow-up suggestion chips row.
voice_recording: RectVoice recording indicator row.
prompt: RectPrompt input widget.
shortcuts: RectBottom shortcuts bar.
scrollback_content: RectScrollback area narrowed for scrollbar.
scrollbar_x: u16Scrollbar track x-coordinate.
timeline_x: u16Timeline rail left edge (0 = hidden).
timeline_width: u16Columns reserved for the timeline rail (0 = hidden).
Implementations§
Source§impl AgentViewLayout
impl AgentViewLayout
Sourcepub fn compute(
area: Rect,
layout_cfg: &LayoutConfig,
scrollbar_cfg: &ScrollbarConfig,
input: LayoutInput,
) -> Self
pub fn compute( area: Rect, layout_cfg: &LayoutConfig, scrollbar_cfg: &ScrollbarConfig, input: LayoutInput, ) -> Self
Compute layout from screen area, appearance config, and per-pane heights.
When any optional pane height is 0, both the pane and its separator
gap are omitted from the constraint list.
Sourcepub fn inner_width(area: Rect, layout_cfg: &LayoutConfig, compact: bool) -> u16
pub fn inner_width(area: Rect, layout_cfg: &LayoutConfig, compact: bool) -> u16
Inner area width (for prompt height computation before full layout).
Sourcepub fn pane_areas(&self) -> PaneAreas
pub fn pane_areas(&self) -> PaneAreas
Convert to PaneAreas for mouse hit-testing.
Trait Implementations§
Source§impl Clone for AgentViewLayout
impl Clone for AgentViewLayout
Source§fn clone(&self) -> AgentViewLayout
fn clone(&self) -> AgentViewLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AgentViewLayout
Source§impl Debug for AgentViewLayout
impl Debug for AgentViewLayout
Source§impl Default for AgentViewLayout
impl Default for AgentViewLayout
Source§fn default() -> AgentViewLayout
fn default() -> AgentViewLayout
impl Eq for AgentViewLayout
Source§impl PartialEq for AgentViewLayout
impl PartialEq for AgentViewLayout
impl StructuralPartialEq for AgentViewLayout
Auto Trait Implementations§
impl Freeze for AgentViewLayout
impl RefUnwindSafe for AgentViewLayout
impl Send for AgentViewLayout
impl Sync for AgentViewLayout
impl Unpin for AgentViewLayout
impl UnsafeUnpin for AgentViewLayout
impl UnwindSafe for AgentViewLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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