sublime.Region

ST2 Represents an area of the buffer. Empty regions, where a == b are valid.



ST3

Represents an area of the buffer. Empty regions, where a == b are valid.



Region ST2&3

ST2&3 Region(a, b) # =>

Creates a Region with initial values a and b.



a ST2&3

ST2&3 a # => int

The first end of the region.



b ST2&3

ST2&3 b # => int

The second end of the region. May be less that a, in which case the region is a reversed one.



begin ST2&3

ST2&3 begin() # => int

Returns the minimum of a and b.



contains ST2≠3

ST2 contains(region) # => bool

Returns True iff the given region is a subset.



ST2 contains(point) # => bool

Returns True iff begin() <= point <= end().



ST3 contains(region) # => bool

Returns True iff the given region is a subset.



ST3 contains(point) # => bool

Returns True iff begin() <= point <= end().



cover ST2≠3

ST2 cover(region) # => Region

Returns a Region spanning both this and the given regions.



ST3 cover(region) # => Region

Returns a Region spanning both this and the given regions.



empty ST2≠3

ST2 empty() # => bool

Returns true iff begin() == end().



ST3 empty() # => bool

Returns True iff begin() == end().



end ST2&3

ST2&3 end() # => int

Returns the maximum of a and b.



intersection ST2≠3

ST2 intersection(region) # => Region

Returns the set intersection of the two regions.



ST3 intersection(region) # => Region

Returns the set intersection of the two regions.



intersects ST2≠3

ST2 intersects(region) # => bool

Returns True iff this == region or both include one or more positions in common.



ST3 intersects(region) # => bool

Returns True iff self == region or both include one or more positions in common.



size ST2&3

ST2&3 size() # => int

Returns the number of characters spanned by the region. Always >= 0.



xpos ST3

ST3 xpos # => int

The target horizontal position of the region, or -1 if undefined. Effects behavior when pressing the up or down keys.




Generated from the official documentation on Sat Oct 29 20:16:47 EEST 2016 by Leonid Shevtsov.