Trait sourceview4::prelude::RegionExt
source · pub trait RegionExt: IsA<Region> + Sealed + 'static {
// Provided methods
fn add_region(&self, region_to_add: Option<&impl IsA<Region>>) { ... }
fn add_subregion(&self, _start: &TextIter, _end: &TextIter) { ... }
fn bounds(&self) -> Option<(TextIter, TextIter)> { ... }
fn buffer(&self) -> Option<TextBuffer> { ... }
fn intersect_region(
&self,
region2: Option<&impl IsA<Region>>
) -> Option<Region> { ... }
fn intersect_subregion(
&self,
_start: &TextIter,
_end: &TextIter
) -> Option<Region> { ... }
fn is_empty(&self) -> bool { ... }
fn subtract_region(&self, region_to_subtract: Option<&impl IsA<Region>>) { ... }
fn subtract_subregion(&self, _start: &TextIter, _end: &TextIter) { ... }
fn to_str(&self) -> GString { ... }
}
Expand description
Provided Methods§
sourcefn add_region(&self, region_to_add: Option<&impl IsA<Region>>)
fn add_region(&self, region_to_add: Option<&impl IsA<Region>>)
Adds region_to_add
to self
. region_to_add
is not modified.
region_to_add
sourcefn add_subregion(&self, _start: &TextIter, _end: &TextIter)
fn add_subregion(&self, _start: &TextIter, _end: &TextIter)
sourcefn buffer(&self) -> Option<TextBuffer>
fn buffer(&self) -> Option<TextBuffer>
Returns
the gtk::TextBuffer
.
sourcefn subtract_region(&self, region_to_subtract: Option<&impl IsA<Region>>)
fn subtract_region(&self, region_to_subtract: Option<&impl IsA<Region>>)
Subtracts region_to_subtract
from self
. region_to_subtract
is not
modified.
region_to_subtract
sourcefn subtract_subregion(&self, _start: &TextIter, _end: &TextIter)
fn subtract_subregion(&self, _start: &TextIter, _end: &TextIter)
sourcefn to_str(&self) -> GString
fn to_str(&self) -> GString
Gets a string represention of self
, for debugging purposes.
The returned string contains the character offsets of the subregions. It doesn’t include a newline character at the end of the string.
Returns
a string represention of self
. Free
with g_free()
when no longer needed.
Object Safety§
This trait is not object safe.