Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Region = Region (ManagedPtr Region)
- class (GObject o, IsDescendantOf Region o) => IsRegion o
- toRegion :: (MonadIO m, IsRegion o) => o -> m 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, MonadIO m, IsTextBuffer a) => a -> m (GValueConstruct o)
- getRegionBuffer :: (MonadIO m, IsRegion o) => o -> m (Maybe TextBuffer)
Exported types
Memory-managed wrapper type.
Instances
Eq Region Source # | |
GObject Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
ManagedPtrNewtype Region Source # | |
Defined in GI.GtkSource.Objects.Region toManagedPtr :: Region -> ManagedPtr Region | |
TypedObject Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
HasParentTypes Region Source # | |
Defined in GI.GtkSource.Objects.Region | |
IsGValue (Maybe Region) Source # | Convert |
Defined in GI.GtkSource.Objects.Region gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Region -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Region) | |
type ParentTypes Region Source # | |
Defined in GI.GtkSource.Objects.Region type ParentTypes Region = '[Object] |
class (GObject o, IsDescendantOf Region o) => IsRegion o Source #
Instances
(GObject o, IsDescendantOf Region o) => IsRegion o Source # | |
Defined in GI.GtkSource.Objects.Region |
Methods
Click to display all available methods, including inherited ones
Methods
addRegion, addSubregion, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, intersectRegion, intersectSubregion, isEmpty, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, subtractRegion, subtractSubregion, thawNotify, toString, unref, watchClosure.
Getters
getBounds, getBuffer, getData, getProperty, getQdata, getStartRegionIter.
Setters
addRegion
Adds regionToAdd
to region
. regionToAdd
is not modified.
Since: 3.22
addSubregion
:: (HasCallStack, MonadIO m, IsRegion a) | |
=> a |
|
-> TextIter |
|
-> TextIter |
|
-> m () |
Adds the subregion delimited by start_
and end_
to region
.
Since: 3.22
getBounds
:: (HasCallStack, MonadIO m, IsRegion a) | |
=> a |
|
-> m (Bool, TextIter, TextIter) | Returns: |
Gets the start
and end
bounds of the region
.
Since: 3.22
getBuffer
:: (HasCallStack, MonadIO m, IsRegion a) | |
=> a |
|
-> m (Maybe TextBuffer) | Returns: the |
No description available in the introspection data.
Since: 3.22
getStartRegionIter
regionGetStartRegionIter Source #
:: (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 #
:: (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 #
:: (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
:: (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
:: (HasCallStack, MonadIO m, IsTextBuffer a) | |
=> a |
|
-> m Region | Returns: a new |
No description available in the introspection data.
Since: 3.22
subtractRegion
:: (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 #
:: (HasCallStack, MonadIO m, IsRegion a) | |
=> a |
|
-> TextIter |
|
-> TextIter |
|
-> m () |
Subtracts the subregion delimited by start_
and end_
from region
.
Since: 3.22
toString
:: (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, MonadIO m, IsTextBuffer a) => a -> m (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