struct SynFrag
- SynFrag
- Struct
- Value
- Object
Defined in:
aspis/document.crConstructors
Instance Method Summary
-
#begin
Returns the index where this fragment begins.
-
#bot
Returns the bottom line in this fragment.
- #each_char_with_index(&)
-
#end
Returns the index where this fragment ends.
- #hi : Hi
- #includes?(index : Int)
- #index_to_coords(index : Int)
- #index_to_extent(index : Int)
-
#index_to_frag_index(index : Int)
Localizes document index to this fragment.
-
#index_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)
- #string
-
#sync(range : Range(Int32, Int32))
Updates this fragment's displayed content according to range.
-
#top
Returns the top line in this fragment.
Constructor Detail
def self.new(document : Document, range : Range(Int32, Int32), origin : SF::Vector2f, inset : SF::Vector2f, hi : Hi = NoHi.new(@document))
#
Instance Method Detail
def index_to_text_object(index : Int, &)
#
Yields text object and document index localized to that text object (i.e., indexing into that text object).