gi-pango-1.0.16: Pango bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Structs.Coverage

Contents

Description

The Coverage structure represents a map from Unicode characters to CoverageLevel. It is an opaque structure with no public fields.

Synopsis

Exported types

newtype Coverage Source #

Memory-managed wrapper type.

Constructors

Coverage (ManagedPtr Coverage) 

noCoverage :: Maybe Coverage Source #

A convenience alias for Nothing :: Maybe Coverage.

Methods

get

coverageGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Coverage

coverage: a Coverage

-> Int32

index_: the index to check

-> m CoverageLevel

Returns: the coverage level of coverage for character index_.

Determine whether a particular index is covered by coverage

max

coverageMax Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Coverage

coverage: a Coverage

-> Coverage

other: another 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

coverageSet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Coverage

coverage: a Coverage

-> Int32

index_: the index to modify

-> CoverageLevel

level: the new level for index_

-> m () 

Modify a particular index within coverage

toBytes

coverageToBytes Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Coverage

coverage: a Coverage

-> m ByteString 

Convert a Coverage structure into a flat binary format

unref

coverageUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Coverage

coverage: a Coverage

-> m () 

Decrease the reference count on the Coverage by one. If the result is zero, free the coverage and all associated memory.