pub struct LayoutParams {
pub width: u32,
pub indent: bool,
pub max_indent: u32,
pub indent_width: u32,
pub stamp_width: u32,
pub gutter_gap: u32,
pub quote_indent: u32,
pub block_padding: u32,
pub word_wrap: bool,
pub avatar_size: u32,
}Expand description
Geometry knobs, supplied by the view.
Fields§
§width: u32Total content width available.
indent: boolTwo-column mode: body indented past a nick/timestamp gutter.
max_indent: u32Cap on the gutter width. Below it the gutter grows to fit the
widest nick seen, which is what gtk_xtext_fix_indent did.
indent_width: u32Current gutter width, shared across the buffer so columns line up between rows.
stamp_width: u32Width reserved at the left of the gutter for the timestamp column, or 0 when timestamps are off.
The layout engine never formats a timestamp — it can’t, having no locale or time formatting — it only reserves the space the view says it needs, so the gutter is wide enough for stamp + nick.
gutter_gap: u32Gap between the right edge of the gutter and the body column.
quote_indent: u32Left padding inside a quote block, per nesting level.
block_padding: u32Vertical padding above and below an image or code block.
word_wrap: bool§avatar_size: u32Edge length of the avatar slot in the gutter, or 0 for no avatars. Driven by the Settings toggle.