struct

Bubbles::Viewport::HighlightInfo

Inherits Struct < Value < Object

HighlightInfo represents a highlight range that may span multiple lines.

Constructors

new(line_start : Int32 = 0, line_end : Int32 = 0, lines : Hash(Int32, Tuple(Int32, Int32)) = Hash(Int32, Tuple(Int32, Int32)).new)
Source

Instance methods

coords

coords returns the line x column of this highlight.

Source
line_end
Source
line_end=(line_end : Int32)
Source
line_start

in which line this highlight starts and ends

Source
line_start=(line_start : Int32)

in which line this highlight starts and ends

Source
lines

the grapheme highlight ranges for each of these lines

Source
lines=(lines : Hash(Int32, Tuple(Int32, Int32)))

the grapheme highlight ranges for each of these lines

Source