Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The Coverage
structure represents a map from Unicode characters
to CoverageLevel
. It is an opaque structure with no public fields.
Synopsis
- newtype Coverage = Coverage (ManagedPtr Coverage)
- class (GObject o, IsDescendantOf Coverage o) => IsCoverage o
- toCoverage :: (MonadIO m, IsCoverage o) => o -> m Coverage
- coverageCopy :: (HasCallStack, MonadIO m, IsCoverage a) => a -> m Coverage
- coverageFromBytes :: (HasCallStack, MonadIO m) => ByteString -> m (Maybe Coverage)
- coverageGet :: (HasCallStack, MonadIO m, IsCoverage a) => a -> Int32 -> m CoverageLevel
- coverageMax :: (HasCallStack, MonadIO m, IsCoverage a, IsCoverage b) => a -> b -> m ()
- coverageNew :: (HasCallStack, MonadIO m) => m Coverage
- coverageRef :: (HasCallStack, MonadIO m, IsCoverage a) => a -> m Coverage
- coverageSet :: (HasCallStack, MonadIO m, IsCoverage a) => a -> Int32 -> CoverageLevel -> m ()
- coverageToBytes :: (HasCallStack, MonadIO m, IsCoverage a) => a -> m ByteString
- coverageUnref :: (HasCallStack, MonadIO m, IsCoverage a) => a -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Coverage Source # | |
IsGValue Coverage Source # | Convert |
ManagedPtrNewtype Coverage Source # | |
Defined in GI.Pango.Objects.Coverage toManagedPtr :: Coverage -> ManagedPtr Coverage # | |
TypedObject Coverage Source # | |
Defined in GI.Pango.Objects.Coverage | |
GObject Coverage Source # | |
Defined in GI.Pango.Objects.Coverage | |
HasParentTypes Coverage Source # | |
Defined in GI.Pango.Objects.Coverage | |
type ParentTypes Coverage Source # | |
Defined in GI.Pango.Objects.Coverage |
class (GObject o, IsDescendantOf Coverage o) => IsCoverage o Source #
Type class for types which can be safely cast to Coverage
, for instance with toCoverage
.
Instances
(GObject o, IsDescendantOf Coverage o) => IsCoverage o Source # | |
Defined in GI.Pango.Objects.Coverage |
toCoverage :: (MonadIO m, IsCoverage o) => o -> m Coverage Source #
Methods
Overloaded methods
copy
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> m Coverage | Returns: the newly allocated |
Copy an existing Coverage
. (This function may now be unnecessary
since we refcount the structure. File a bug if you use it.)
fromBytes
:: (HasCallStack, MonadIO m) | |
=> ByteString |
|
-> m (Maybe Coverage) | Returns: a newly allocated
|
Deprecated: (Since version 1.44)This returns Nothing
Convert data generated from coverageToBytes
back
to a Coverage
get
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> Int32 |
|
-> m CoverageLevel | Returns: the coverage level of |
Determine whether a particular index is covered by coverage
max
:: (HasCallStack, MonadIO m, IsCoverage a, IsCoverage b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 1.44)This function does nothing
Set the coverage for each index in coverage
to be the max (better)
value of the current coverage for the index and the coverage for
the corresponding index in other
.
new
:: (HasCallStack, MonadIO m) | |
=> m Coverage | Returns: the newly allocated |
Create a new Coverage
ref
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> m Coverage | Returns: |
Increase the reference count on the Coverage
by one
set
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> Int32 |
|
-> CoverageLevel |
|
-> m () |
Modify a particular index within coverage
toBytes
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> m ByteString |
unref
:: (HasCallStack, MonadIO m, IsCoverage a) | |
=> a |
|
-> m () |
Decrease the reference count on the Coverage
by one.
If the result is zero, free the coverage and all associated memory.