Skip to main content

AgentViewLayout

Struct AgentViewLayout 

Source
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: Rect

1-row top status bar.

§startup_warnings: Rect

Startup warning banner.

§tasks: Rect

Background tasks pane.

§catalog: Rect

Subagent / extension catalog pane.

§scrollback: Rect

Main conversation scrollback (dominant).

§todo: Rect

Todo checklist side-pane.

§queue: Rect

Prompt queue side-pane.

§btw: Rect

Inline side-question panel.

§turn_status: Rect

Turn status line.

§banner: Rect

Banner row above the prompt.

§plugin_cta: Rect

Inline CTA row.

§follow_ups: Rect

Follow-up suggestion chips row.

§voice_recording: Rect

Voice recording indicator row.

§prompt: Rect

Prompt input widget.

§shortcuts: Rect

Bottom shortcuts bar.

§scrollback_content: Rect

Scrollback area narrowed for scrollbar.

§scrollbar_x: u16

Scrollbar track x-coordinate.

§timeline_x: u16

Timeline rail left edge (0 = hidden).

§timeline_width: u16

Columns reserved for the timeline rail (0 = hidden).

Implementations§

Source§

impl AgentViewLayout

Source

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.

Source

pub fn inner_width(area: Rect, layout_cfg: &LayoutConfig, compact: bool) -> u16

Inner area width (for prompt height computation before full layout).

Source

pub fn pane_areas(&self) -> PaneAreas

Convert to PaneAreas for mouse hit-testing.

Trait Implementations§

Source§

impl Clone for AgentViewLayout

Source§

fn clone(&self) -> AgentViewLayout

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AgentViewLayout

Source§

impl Debug for AgentViewLayout

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AgentViewLayout

Source§

fn default() -> AgentViewLayout

Returns the “default value” for a type. Read more
Source§

impl Eq for AgentViewLayout

Source§

impl PartialEq for AgentViewLayout

Source§

fn eq(&self, other: &AgentViewLayout) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AgentViewLayout

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.