struct

TermBuf::Buffer::Hit

Inherits Struct < Value < Object

What one cell holds, as Buffer#hit answers it.

A hit always names the cluster's lead: ask about the right half of a wide character and x comes back as the left half's column, with lead false to say the question was not asked there. That is what a click on a CJK glyph wants — the glyph, not the half of it under the pointer.

Constructors

new(x : Int32, y : Int32, lead : Bool, cell : Cell, text : String)
Source

Instance methods

cell

The lead cell.

clone
Source
copy_with(x _x = @x, y _y = @y, lead _lead = @lead, cell _cell = @cell, text _text = @text)
Source
lead

Whether the position asked about was the lead itself.

text

The cluster's text, " " for a blank cell.

x

The lead cell's column, which is not the column asked about when the cell there continues a cluster.

y

The row, which is the row asked about.