Minga.RenderModel.Window.GutterMetrics (Minga v0.1.0)

Copy Markdown View Source

Window-scoped gutter sizing in terminal cell columns.

Summary

Functions

Returns the total gutter width in cells.

Types

t()

@type t() :: %Minga.RenderModel.Window.GutterMetrics{
  line_number_width: non_neg_integer(),
  sign_col_width: non_neg_integer()
}

Functions

total_width(metrics)

@spec total_width(t()) :: non_neg_integer()

Returns the total gutter width in cells.