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 |
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)
- noCoverage :: Maybe Coverage
- coverageGet :: (HasCallStack, MonadIO m) => Coverage -> Int32 -> m CoverageLevel
- coverageMax :: (HasCallStack, MonadIO m) => Coverage -> Coverage -> m ()
- coverageSet :: (HasCallStack, MonadIO m) => Coverage -> Int32 -> CoverageLevel -> m ()
- coverageToBytes :: (HasCallStack, MonadIO m) => Coverage -> m ByteString
- coverageUnref :: (HasCallStack, MonadIO m) => Coverage -> m ()
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr Coverage Source # | |
Defined in GI.Pango.Structs.Coverage |
Methods
get
:: (HasCallStack, MonadIO m) | |
=> Coverage |
|
-> Int32 |
|
-> m CoverageLevel | Returns: the coverage level of |
Determine whether a particular index is covered by coverage
max
:: (HasCallStack, MonadIO m) | |
=> Coverage |
|
-> Coverage |
|
-> m () |
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
.
set
:: (HasCallStack, MonadIO m) | |
=> Coverage |
|
-> Int32 |
|
-> CoverageLevel |
|
-> m () |
Modify a particular index within coverage
toBytes
:: (HasCallStack, MonadIO m) | |
=> Coverage |
|
-> m ByteString |
Convert a Coverage
structure into a flat binary format
unref
:: (HasCallStack, MonadIO m) | |
=> Coverage |
|
-> m () |
Decrease the reference count on the Coverage
by one.
If the result is zero, free the coverage and all associated memory.