CoverageProtocol
public protocol CoverageProtocol : ObjectProtocol
A PangoCoverage
structure is a map from Unicode characters
to [enumPango.CoverageLevel
] values.
It is often necessary in Pango to determine if a particular
font can represent a particular character, and also how well
it can represent that character. The PangoCoverage
is a data
structure that is used to represent that information. It is an
opaque structure with no public fields.
The CoverageProtocol
protocol exposes the methods and properties of an underlying PangoCoverage
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Coverage
.
Alternatively, use CoverageRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoCoverage
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
coverage_ptr
Default implementationTyped pointer to the underlying
PangoCoverage
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoCoverage
instance.Declaration
Swift
var coverage_ptr: UnsafeMutablePointer<PangoCoverage>! { get }
-
Required Initialiser for types conforming to
CoverageProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()
Extension methodCopy an existing
PangoCoverage
.Declaration
Swift
@inlinable func copy() -> Pango.CoverageRef!
-
get(index:
Extension method) Determine whether a particular index is covered by
coverage
.Declaration
Swift
@inlinable func get(index: Int) -> PangoCoverageLevel
-
max(other:
Extension method) 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 inother
.max is deprecated: This function does nothing
Declaration
Swift
@available(*, deprecated) @inlinable func max<CoverageT>(other: CoverageT) where CoverageT : CoverageProtocol
-
ref()
Extension methodIncrease the reference count on the
PangoCoverage
by one.ref is deprecated: Use g_object_ref instead
Declaration
Swift
@available(*, deprecated) @discardableResult @inlinable func ref() -> Pango.CoverageRef!
-
set(index:
Extension methodlevel: ) Modify a particular index within
coverage
Declaration
Swift
@inlinable func set(index: Int, level: PangoCoverageLevel)
-
to(bytes:
Extension methodnBytes: ) Convert a
PangoCoverage
structure into a flat binary format.to_bytes is deprecated: This returns %NULL
Declaration
Swift
@available(*, deprecated) @inlinable func to(bytes: UnsafeMutablePointer<UnsafeMutablePointer<guchar>?>!, nBytes: UnsafeMutablePointer<gint>!)
-
unref()
Extension methodDecrease the reference count on the
PangoCoverage
by one.If the result is zero, free the coverage and all associated memory.
unref is deprecated: Use g_object_unref instead
Declaration
Swift
@available(*, deprecated) @inlinable func unref()