gtksource.region

Module for [Region] class

Types 3

Methods
GType _gType() @property
Region self()Returns `this`, for use in `with` statements.
RegionGidBuilder builder()Get builder for [gtksource.region.Region] Returns: New builder object
gtk.text_buffer.TextBuffer buffer() @propertyGet `buffer` property. Returns: The #GtkTextBuffer. The #GtkSourceRegion has a weak reference to the buffer.
void addRegion(gtksource.region.Region regionToAdd = null)Adds regiontoadd to region. regiontoadd is not modified.
void addSubregion(gtk.text_iter.TextIter Start, gtk.text_iter.TextIter End)Adds the subregion delimited by start and end to region.
bool getBounds(out gtk.text_iter.TextIter start, out gtk.text_iter.TextIter end)Gets the start and end bounds of the region.
void getStartRegionIter(out gtksource.region_iter.RegionIter iter)Initializes a #GtkSourceRegionIter to the first subregion of region. If region is empty, iter will be initialized to the end iterator.
gtksource.region.Region intersectRegion(gtksource.region.Region region2 = null)Returns the intersection between region1 and region2. region1 and region2 are not modified.
gtksource.region.Region intersectSubregion(gtk.text_iter.TextIter Start, gtk.text_iter.TextIter End)Returns the intersection between region and the subregion delimited by start and end. region is not modified.
bool isEmpty()Returns whether the region is empty. A null region is considered empty. Returns: whether the region is empty.
void subtractRegion(gtksource.region.Region regionToSubtract = null)Subtracts regiontosubtract from region. regiontosubtract is not modified.
void subtractSubregion(gtk.text_iter.TextIter Start, gtk.text_iter.TextIter End)Subtracts the subregion delimited by start and end from region.
string toString_()Gets a string represention of region, for debugging purposes.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T buffer(gtk.text_buffer.TextBuffer propval)Set `buffer` property. Params: propval = The #GtkTextBuffer. The #GtkSourceRegion has a weak reference to the buffer. Returns: Builder instance for fluent chaining

Fluent builder for [gtksource.region.Region]

Methods