Pango.Coverage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Pango.Coverage(**kwargs)¶
- Bases:
- Abstract:
No
A
PangoCoverage
structure is a map from Unicode characters to [enum`Pango`.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.- classmethod from_bytes(bytes)[source]¶
- Parameters:
bytes (
bytes
) – binary data representing aPangoCoverage
- Returns:
a newly allocated
PangoCoverage
- Return type:
Convert data generated from [method`Pango`.Coverage.to_bytes] back to a
PangoCoverage
.Deprecated since version 1.44: This returns
None
- classmethod new()[source]¶
- Returns:
the newly allocated
PangoCoverage
, initialized toPango.CoverageLevel.NONE
with a reference count of one, which should be freed with [method`Pango`.Coverage.unref].- Return type:
Create a new
PangoCoverage
- copy()[source]¶
- Returns:
the newly allocated
PangoCoverage
, with a reference count of one, which should be freed with [method`Pango`.Coverage.unref].- Return type:
Copy an existing
PangoCoverage
.
- get(index_)[source]¶
- Parameters:
index (
int
) – the index to check- Returns:
the coverage level of self for character index_.
- Return type:
Determine whether a particular index is covered by self.
- max(other)[source]¶
- Parameters:
other (
Pango.Coverage
) – anotherPangoCoverage
Set the coverage for each index in self to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other.
Deprecated since version 1.44: This function does nothing
- ref()[source]¶
- Returns:
self
- Return type:
Increase the reference count on the
PangoCoverage
by one.Deprecated since version 1.52: Use
GObject.Object.ref
instead
- set(index_, level)[source]¶
- Parameters:
index (
int
) – the index to modifylevel (
Pango.CoverageLevel
) – the new level for index_
Modify a particular index within self
- to_bytes()[source]¶
-
Convert a
PangoCoverage
structure into a flat binary format.Deprecated since version 1.44: This returns
None
- unref()[source]¶
Decrease the reference count on the
PangoCoverage
by one.If the result is zero, free the coverage and all associated memory.
Deprecated since version 1.52: Use
GObject.Object.unref
instead