| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GtkSource.Objects.Region
Contents
Description
No description available in the introspection data.
Synopsis
- newtype Region = Region (ManagedPtr Region)
- class GObject o => IsRegion o
- toRegion :: (MonadIO m, IsRegion o) => o -> m Region
- noRegion :: Maybe Region
- regionAddRegion :: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) => a -> Maybe b -> m ()
- regionAddSubregion :: (HasCallStack, MonadIO m, IsRegion a) => a -> TextIter -> TextIter -> m ()
- regionGetBounds :: (HasCallStack, MonadIO m, IsRegion a) => a -> m (Bool, TextIter, TextIter)
- regionGetBuffer :: (HasCallStack, MonadIO m, IsRegion a) => a -> m (Maybe TextBuffer)
- regionGetStartRegionIter :: (HasCallStack, MonadIO m, IsRegion a) => a -> m RegionIter
- regionIntersectRegion :: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) => a -> Maybe b -> m (Maybe Region)
- regionIntersectSubregion :: (HasCallStack, MonadIO m, IsRegion a) => a -> TextIter -> TextIter -> m (Maybe Region)
- regionIsEmpty :: (HasCallStack, MonadIO m, IsRegion a) => a -> m Bool
- regionNew :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Region
- regionSubtractRegion :: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) => a -> Maybe b -> m ()
- regionSubtractSubregion :: (HasCallStack, MonadIO m, IsRegion a) => a -> TextIter -> TextIter -> m ()
- regionToString :: (HasCallStack, MonadIO m, IsRegion a) => a -> m (Maybe Text)
- constructRegionBuffer :: (IsRegion o, IsTextBuffer a) => a -> IO (GValueConstruct o)
- getRegionBuffer :: (MonadIO m, IsRegion o) => o -> m (Maybe TextBuffer)
Exported types
Memory-managed wrapper type.
Constructors
| Region (ManagedPtr Region) |
Instances
| GObject Region Source # | |
Defined in GI.GtkSource.Objects.Region Methods gobjectType :: Region -> IO GType # | |
| IsObject Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
| IsRegion Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
class GObject o => IsRegion o Source #
Instances
| (GObject a, (UnknownAncestorError Region a :: Constraint)) => IsRegion a Source # | |
Defined in GI.GtkSource.Objects.Region | |
| IsRegion Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
Methods
addRegion
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) | |
| => a |
|
| -> Maybe b | |
| -> m () |
Adds regionToAdd to region. regionToAdd is not modified.
Since: 3.22
addSubregion
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Adds the subregion delimited by start_ and end_ to region.
Since: 3.22
getBounds
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> m (Bool, TextIter, TextIter) | Returns: |
Gets the start and end bounds of the region.
Since: 3.22
getBuffer
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> m (Maybe TextBuffer) | Returns: the |
No description available in the introspection data.
Since: 3.22
getStartRegionIter
regionGetStartRegionIter Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> 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 | |
| -> Maybe b | |
| -> m (Maybe Region) | Returns: the intersection as a |
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 |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m (Maybe Region) | Returns: the intersection as a new
|
Returns the intersection between region and the subregion delimited by
start_ and end_. region is not modified.
Since: 3.22
isEmpty
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a | |
| -> m Bool | Returns: whether the |
Returns whether the region is empty. A Nothing region is considered empty.
Since: 3.22
new
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Region | Returns: a new |
No description available in the introspection data.
Since: 3.22
subtractRegion
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a, IsRegion b) | |
| => a |
|
| -> Maybe b |
|
| -> m () |
Subtracts regionToSubtract from region. regionToSubtract is not
modified.
Since: 3.22
subtractSubregion
regionSubtractSubregion Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Subtracts the subregion delimited by start_ and end_ from region.
Since: 3.22
toString
Arguments
| :: (HasCallStack, MonadIO m, IsRegion a) | |
| => a |
|
| -> m (Maybe Text) | Returns: a string represention of |
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
The TextBuffer. The Region has a weak reference to the
buffer.
Since: 3.22
constructRegionBuffer :: (IsRegion o, IsTextBuffer a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “buffer” property. This is rarely needed directly, but it is used by new.
getRegionBuffer :: (MonadIO m, IsRegion o) => o -> m (Maybe TextBuffer) Source #
Get the value of the “buffer” property.
When overloading is enabled, this is equivalent to
get region #buffer