gtksource.region
Module for [Region] class
Types 3
classRegion : gobject.object.ObjectWrap
Methods
RegionGidBuilder builder() static nothrowGet builder for [gtksource.region.Region] Returns: New builder objectgtk.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.gtk.text_buffer.TextBuffer getBuffer() nothrowvoid 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.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 chainingFluent builder for gtksource.region.Region