Trait sourceview5::RegionExt [−][src]
Required methods
fn add_region<P: IsA<Region>>(&self, region_to_add: Option<&P>)[src]
Adds region_to_add to self. region_to_add is not modified.
region_to_add
the Region to add to self, or None.
fn add_subregion(&self, _start: &TextIter, _end: &TextIter)[src]
Adds the subregion delimited by _start and _end to self.
_start
the start of the subregion.
_end
the end of the subregion.
fn get_bounds(&self) -> Option<(TextIter, TextIter)>[src]
Gets the start and end bounds of the self.
start
iterator to initialize with the start of self,
or None.
end
iterator to initialize with the end of self,
or None.
Returns
true if start and end have been set successfully (if non-None),
or false if the self is empty.
fn get_buffer(&self) -> Option<TextBuffer>[src]
Returns
the gtk::TextBuffer.
fn intersect_region<P: IsA<Region>>(
&self,
region2: Option<&P>
) -> Option<Region>[src]
&self,
region2: Option<&P>
) -> Option<Region>
Returns the intersection between self and region2. self and
region2 are not modified.
region2
a Region, or None.
Returns
the intersection as a Region
object.
fn intersect_subregion(
&self,
_start: &TextIter,
_end: &TextIter
) -> Option<Region>[src]
&self,
_start: &TextIter,
_end: &TextIter
) -> Option<Region>
Returns the intersection between self and the subregion delimited by
_start and _end. self is not modified.
_start
the start of the subregion.
_end
the end of the subregion.
Returns
the intersection as a new
Region.
fn is_empty(&self) -> bool[src]
Returns whether the self is empty. A None self is considered empty.
Returns
whether the self is empty.
fn subtract_region<P: IsA<Region>>(&self, region_to_subtract: Option<&P>)[src]
Subtracts region_to_subtract from self. region_to_subtract is not
modified.
region_to_subtract
the Region to subtract from
self, or None.
fn subtract_subregion(&self, _start: &TextIter, _end: &TextIter)[src]
Subtracts the subregion delimited by _start and _end from self.
_start
the start of the subregion.
_end
the end of the subregion.
fn to_str(&self) -> GString[src]
Implementors
impl<O: IsA<Region>> RegionExt for O[src]
fn add_region<P: IsA<Region>>(&self, region_to_add: Option<&P>)[src]
fn add_subregion(&self, _start: &TextIter, _end: &TextIter)[src]
fn get_bounds(&self) -> Option<(TextIter, TextIter)>[src]
fn get_buffer(&self) -> Option<TextBuffer>[src]
fn intersect_region<P: IsA<Region>>(
&self,
region2: Option<&P>
) -> Option<Region>[src]
&self,
region2: Option<&P>
) -> Option<Region>
fn intersect_subregion(
&self,
_start: &TextIter,
_end: &TextIter
) -> Option<Region>[src]
&self,
_start: &TextIter,
_end: &TextIter
) -> Option<Region>