struct

SynFrag

Inherits Struct < Value < Object

Constructors

new(document : Document, range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi : Hi = NoHi.new(@document))
Source

Instance methods

begin

Returns the index where this fragment begins.

Source
bot

Returns the bottom line in this fragment.

Source
each_char_with_index
Source
end

Returns the index where this fragment ends.

Source
includes?(index : Int)
Source
index_to_coords(index : Int)
Source
index_to_extent(index : Int)
Source
index_to_frag_index(index : Int)

Localizes document index to this fragment.

Source
index_to_text_object(index : Int, &)

Yields text object and document index localized to that text object (i.e., indexing into that text object).

Source
present(window)
Source
string
Source
sync(range : Range(Int32, Int32))

Updates this fragment's displayed content according to range. Returns an updated copy of SynText. This copy must be used instead of self after sync.

Source
top

Returns the top line in this fragment.

Source