Class: Pango::Coverage
- Inherits:
-
Object
- Object
- Pango::Coverage
- Defined in:
- (unknown)
Overview
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.
Class Method Summary collapse
-
.from_bytes(bytes, n_bytes) ⇒ Pango::Coverage
Convert data generated from [methodPango.Coverage.to_bytes] back to a
PangoCoverage.
Instance Method Summary collapse
-
#copy ⇒ Pango::Coverage
Copy an existing
PangoCoverage. -
#get(index_) ⇒ Pango::CoverageLevel
Determine whether a particular index is covered by coverage.
-
#initialize ⇒ Pango::Coverage
constructor
Create a new
PangoCoverage. -
#max(other) ⇒ nil
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.
-
#ref ⇒ Pango::Coverage
Increase the reference count on the
PangoCoverageby one. -
#set(index_, level) ⇒ nil
Modify a particular index within coverage.
-
#to_bytes(bytes, n_bytes) ⇒ nil
Convert a
PangoCoveragestructure into a flat binary format. -
#unref ⇒ nil
Decrease the reference count on the
PangoCoverageby one.
Constructor Details
#initialize ⇒ Pango::Coverage
Create a new PangoCoverage
Class Method Details
.from_bytes(bytes, n_bytes) ⇒ Pango::Coverage
Convert data generated from [methodPango.Coverage.to_bytes]
back to a PangoCoverage.
Instance Method Details
#copy ⇒ Pango::Coverage
Copy an existing PangoCoverage.
#get(index_) ⇒ Pango::CoverageLevel
Determine whether a particular index is covered by coverage.
#max(other) ⇒ nil
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.
#ref ⇒ Pango::Coverage
Increase the reference count on the PangoCoverage by one.
#set(index_, level) ⇒ nil
Modify a particular index within coverage
#to_bytes(bytes, n_bytes) ⇒ nil
Convert a PangoCoverage structure into a flat binary format.
#unref ⇒ nil
Decrease the reference count on the PangoCoverage by one.
If the result is zero, free the coverage and all associated memory.