GPUI Box GitHub

Components

LogStream builder

A virtualized, read-only log presentation.

A builder is RenderOnce. Construct and mount it in one expression.

use gpui_kit::content::LogStream;

Construct

new(ident: impl Into<Ident>, entries: impl IntoIterator<Item = LogEntry>) -> Self

Options

Chain onto the value.

state(state: LogStreamState) -> Self
visible_rows(rows: usize) -> Self
selected(id: impl Into<SharedString>) -> Self
on_select(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_copy(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self

Rendered by

Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.

Source: crates/gpui-kit/src/content/log_stream.rs