struct SynText
- SynText
- Struct
- Value
- Object
Defined in:
aspis/document.crConstructors
Instance Method Summary
- #begin
- #end
- #frag(range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi = NoHi.new(@document.theme))
- #index_to_coords(index : Int)
- #index_to_extent(index : Int)
-
#index_to_frag(index : Int)
Finds and returns the
SynFrag
which contains the given document index. - #present(window)
-
#subrange?(range : Range(Int32, Int32))
Returns whether range is a subrange of this syntax text's range.
- #sync(range : Range(Int32, Int32))
Constructor Detail
Instance Method Detail
def frag(range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi = NoHi.new(@document.theme))
#
def index_to_frag(index : Int)
#
Finds and returns the SynFrag
which contains the given
document index.
def subrange?(range : Range(Int32, Int32))
#
Returns whether range is a subrange of this syntax text's range.