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

Copy Markdown View Source

One immutable-base row splice in a RowDelta.

start_index and delete_count address the row sequence before any splice in the delta is applied. insert_rows are inserted at that base coordinate.

Summary

Functions

Returns the exclusive base-row end coordinate deleted by this splice.

Returns the number of rows inserted by this splice.

Builds one immutable-base row splice.

Types

t()

@type t() :: %Minga.RenderModel.Window.RowSplice{
  delete_count: non_neg_integer(),
  insert_rows: [Minga.RenderModel.Window.Row.t()],
  start_index: non_neg_integer()
}

Functions

base_end(splice)

@spec base_end(t()) :: non_neg_integer()

Returns the exclusive base-row end coordinate deleted by this splice.

insert_count(splice)

@spec insert_count(t()) :: non_neg_integer()

Returns the number of rows inserted by this splice.

new(start_index, delete_count, insert_rows)

Builds one immutable-base row splice.