MingaEditor.SemanticWindow.SearchMatch (Minga v0.1.0)

Copy Markdown View Source

A search match in display coordinates.

The GUI renders these as highlight quads behind text. The is_current flag indicates the currently confirmed match (rendered with a distinct color).

Summary

Functions

Converts search matches from the render context to display coordinates.

Types

t()

@type t() :: %MingaEditor.SemanticWindow.SearchMatch{
  end_col: non_neg_integer(),
  is_current: boolean(),
  row: non_neg_integer(),
  start_col: non_neg_integer()
}

Functions

from_context_matches(matches, confirm_match, viewport_top, viewport_bottom)

@spec from_context_matches(
  [Minga.Editing.Search.Match.t()],
  Minga.Editing.Search.Match.t() | nil,
  non_neg_integer(),
  non_neg_integer()
) :: [t()]

Converts search matches from the render context to display coordinates.