| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.NM.Structs.Range
Description
No description available in the introspection data.
Synopsis
- newtype Range = Range (ManagedPtr Range)
- rangeCmp :: (HasCallStack, MonadIO m) => Range -> Range -> m Int32
- rangeFromStr :: (HasCallStack, MonadIO m) => Text -> m Range
- rangeGetRange :: (HasCallStack, MonadIO m) => Range -> m (Bool, Word64, Word64)
- rangeNew :: (HasCallStack, MonadIO m) => Word64 -> Word64 -> m Range
- rangeRef :: (HasCallStack, MonadIO m) => Range -> m Range
- rangeToStr :: (HasCallStack, MonadIO m) => Range -> m Text
- rangeUnref :: (HasCallStack, MonadIO m) => Range -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| Range (ManagedPtr Range) |
Instances
| Eq Range Source # | |
| GBoxed Range Source # | |
Defined in GI.NM.Structs.Range | |
| ManagedPtrNewtype Range Source # | |
Defined in GI.NM.Structs.Range Methods toManagedPtr :: Range -> ManagedPtr Range # | |
| TypedObject Range Source # | |
Defined in GI.NM.Structs.Range | |
| HasParentTypes Range Source # | |
Defined in GI.NM.Structs.Range | |
| IsGValue (Maybe Range) Source # | Convert |
Defined in GI.NM.Structs.Range | |
| type ParentTypes Range Source # | |
Defined in GI.NM.Structs.Range | |
Methods
Click to display all available methods, including inherited ones
cmp
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Range |
|
| -> Range |
|
| -> m Int32 | Returns: zero if the two instances are equivalent or a non-zero integer otherwise. This defines a total ordering over the ranges. |
Compare two ranges.
Since: 1.42
fromStr
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m Range |
Parses the string representation of the range to create a NMRange
instance.
Since: 1.42
getRange
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Range |
|
| -> m (Bool, Word64, Word64) | Returns: |
Gets the start and end values for the range.
Since: 1.42
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Word64 |
|
| -> Word64 |
|
| -> m Range | Returns: the new |
Creates a new Range object for the given range. Setting end
equal to start creates a single-element range.
Since: 1.42
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Range |
|
| -> m Range | Returns: the input argument |
Increases the reference count of the object. This is thread-safe.
Since: 1.42
toStr
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Range |
|
| -> m Text | Returns: a string representing the range. |
Convert a NMRange to a string.
Since: 1.42
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Range |
|
| -> m () |
Decreases the reference count of the object. If the reference count reaches zero the object will be destroyed. This is thread-safe.
Since: 1.42