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>) -> SelfOptions
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) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.