struct SynText

Defined in:

aspis/document.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(document : Document, range : Range(Int32, Int32), origin : SF::Vector2f) #

[View source]

Instance Method Detail

def begin #

[View source]
def end #

[View source]
def frag(range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi = NoHi.new(@document.theme)) #

[View source]
def index_to_coords(index : Int) #

[View source]
def index_to_extent(index : Int) #

[View source]
def index_to_frag(index : Int) #

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


[View source]
def present(window) #

[View source]
def subrange?(range : Range(Int32, Int32)) #

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


[View source]
def sync(range : Range(Int32, Int32)) #

[View source]