struct

SynText

Inherits Struct < Value < Object

Constructors

new(document : Document, range : Range(Int32, Int32), origin : SF::Vector2f)
Source

Instance methods

begin
Source
frag(range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi = NoHi.new(@document.theme))
Source
index_to_coords(index : Int)
Source
index_to_extent(index : Int)
Source
index_to_frag(index : Int)

Finds and returns the SynFrag which contains the given document index.

Source
present(window)
Source
subrange?(range : Range(Int32, Int32))

Returns whether range is a subrange of this syntax text's range.

Source
sync(range : Range(Int32, Int32))
Source