SynFrag
Inherits Struct < Value < Object
Constructors
new(document : Document, range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi : Hi = NoHi.new(@document))
SourceInstance methods
each_char_with_index
Sourcehi
Sourceincludes?(index : Int)
Sourceindex_to_coords(index : Int)
Sourceindex_to_extent(index : Int)
Sourceindex_to_text_object(index : Int, &)
Yields text object and document index localized to that text object (i.e., indexing into that text object).
present(window)
Sourcestring
Sourcesync(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.