gi-gtksource-3.0.12: 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

newtype Region Source #

Constructors

Region (ManagedPtr Region) 

Instances

GObject Region Source # 

Methods

gobjectType :: Region -> IO GType #

IsObject Region Source # 
IsRegion Region Source # 
((~) * info (ResolveRegionMethod t Region), MethodInfo * info Region p) => IsLabel t (Region -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Region -> p #

((~) * info (ResolveRegionMethod t Region), MethodInfo * info Region p) => IsLabelProxy t (Region -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Region -> p #

HasAttributeList * Region Source # 
type AttributeList Region Source # 
type SignalList Region Source # 

Methods

addRegion

data RegionAddRegionMethodInfo Source #

Instances

((~) * signature (Maybe b -> m ()), MonadIO m, IsRegion a, IsRegion b) => MethodInfo * RegionAddRegionMethodInfo a signature Source # 

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

data RegionIsEmptyMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsRegion a) => MethodInfo * RegionIsEmptyMethodInfo a signature Source # 

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

data RegionToStringMethodInfo Source #

Instances

((~) * signature (m (Maybe Text)), MonadIO m, IsRegion a) => MethodInfo * RegionToStringMethodInfo a signature Source # 

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

data RegionBufferPropertyInfo Source #

Instances

AttrInfo RegionBufferPropertyInfo Source # 
type AttrOrigin RegionBufferPropertyInfo Source # 
type AttrLabel RegionBufferPropertyInfo Source # 
type AttrGetType RegionBufferPropertyInfo Source # 
type AttrBaseTypeConstraint RegionBufferPropertyInfo Source # 
type AttrSetTypeConstraint RegionBufferPropertyInfo Source # 
type AttrAllowedOps RegionBufferPropertyInfo Source #