gtksource.region

Module for [Region] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Region self() nothrowReturns `this`, for use in `with` statements.
RegionGidBuilder builder() static nothrowGet builder for [gtksource.region.Region] Returns: New builder object
gtk.text_buffer.TextBuffer buffer() @property nothrowGet `buffer` property. Returns: The #GtkTextBuffer. The #GtkSourceRegion has a weak reference to the buffer.
void addRegion(gtksource.region.Region regionToAdd = null) nothrowAdds region_to_add to region. region_to_add is not modified.
void addSubregion(gtk.text_iter.TextIter Start, gtk.text_iter.TextIter End) nothrowAdds the subregion delimited by start and end to region.
bool getBounds(out gtk.text_iter.TextIter start, out gtk.text_iter.TextIter end) nothrowGets the start and end bounds of the region.
void getStartRegionIter(out gtksource.region_iter.RegionIter iter) nothrowInitializes 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) nothrowReturns 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) nothrowReturns the intersection between region and the subregion delimited by start and end. region is not modified.
bool isEmpty() nothrowReturns whether the region is empty. A null region is considered empty. Returns: whether the region is empty.
void subtractRegion(gtksource.region.Region regionToSubtract = null) nothrowSubtracts region_to_subtract from region. region_to_subtract is not modified.
void subtractSubregion(gtk.text_iter.TextIter Start, gtk.text_iter.TextIter End) nothrowSubtracts the subregion delimited by start and end from region.
string toString_() nothrowGets a string represention of region, for debugging purposes.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtksource.region.Region

Methods
T buffer(gtk.text_buffer.TextBuffer propval) nothrowSet `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
Region build() nothrowCreate object from builder. Returns: New object