Skip to main content

Module block_renderers

Module block_renderers 

Source

Modules§

agent_message
Renderer for AgentMessage blocks.
approval
Renderer for ApprovalRequest blocks. These are the security dialogs — rendered with attention-grabbing amber accent.
shell_block
Renderer for ShellCommand blocks. Two-rect layout: [cmd bar] gap [output panel] The command bar and output panel are visually distinct — different backgrounds, a clear gap between them — so $ ls and the directory listing look separate.

Traits§

BlockRenderer
Trait implemented by each block type’s renderer.

Functions§

measure_block_height
Dispatch to the correct renderer based on block content. font_size here is the physical font size (already multiplied by scale_factor).
render_block_background
Emit rectangle draw calls for a block’s background and border.