gi-gtksource-3.0.15: GtkSource bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Objects.Region

Contents

Description

 

Synopsis

Exported types

toRegion :: (MonadIO m, IsRegion o) => o -> m Region Source #

Methods

addRegion

regionAddRegion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) 
=> a

region: a Region.

-> Maybe b

regionToAdd: the Region to add to region, or Nothing.

-> m () 

Adds regionToAdd to region. regionToAdd is not modified.

Since: 3.22

addSubregion

regionAddSubregion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> TextIter

start_: the start of the subregion.

-> TextIter

end_: the end of the subregion.

-> m () 

Adds the subregion delimited by start_ and end_ to region.

Since: 3.22

getBounds

regionGetBounds Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> m (Bool, TextIter, TextIter)

Returns: True if start and end have been set successfully (if non-Nothing), or False if the region is empty.

Gets the start and end bounds of the region.

Since: 3.22

getBuffer

regionGetBuffer Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> m (Maybe TextBuffer)

Returns: the TextBuffer.

No description available in the introspection data.

Since: 3.22

getStartRegionIter

regionGetStartRegionIter Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> m RegionIter 

Initializes a RegionIter to the first subregion of region. If region is empty, iter will be initialized to the end iterator.

Since: 3.22

intersectRegion

regionIntersectRegion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) 
=> a

region1: a Region, or Nothing.

-> Maybe b

region2: a Region, or Nothing.

-> m (Maybe Region)

Returns: the intersection as a Region object.

Returns the intersection between region1 and region2. region1 and region2 are not modified.

Since: 3.22

intersectSubregion

regionIntersectSubregion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> TextIter

start_: the start of the subregion.

-> TextIter

end_: the end of the subregion.

-> m (Maybe Region)

Returns: the intersection as a new Region.

Returns the intersection between region and the subregion delimited by start_ and end_. region is not modified.

Since: 3.22

isEmpty

regionIsEmpty Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region, or Nothing.

-> m Bool

Returns: whether the region is empty.

Returns whether the region is empty. A Nothing region is considered empty.

Since: 3.22

new

regionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsTextBuffer a) 
=> a

buffer: a TextBuffer.

-> m Region

Returns: a new Region object for buffer.

No description available in the introspection data.

Since: 3.22

subtractRegion

regionSubtractRegion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) 
=> a

region: a Region.

-> Maybe b

regionToSubtract: the Region to subtract from region, or Nothing.

-> m () 

Subtracts regionToSubtract from region. regionToSubtract is not modified.

Since: 3.22

subtractSubregion

regionSubtractSubregion Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> TextIter

start_: the start of the subregion.

-> TextIter

end_: the end of the subregion.

-> m () 

Subtracts the subregion delimited by start_ and end_ from region.

Since: 3.22

toString

regionToString Source #

Arguments

:: (HasCallStack, MonadIO m, IsRegion a) 
=> a

region: a Region.

-> m (Maybe Text)

Returns: a string represention of region. Free with free when no longer needed.

Gets a string represention of region, 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.

Since: 3.22

Properties

buffer