Pango.Coverage¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | from_bytes(bytes) | 
| class | new() | 
| copy() | |
| get(index_) | |
| max(other) | |
| ref() | |
| set(index_, level) | |
| to_bytes() | |
| unref() | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Pango.Coverage(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - The - Pango.Coveragestructure represents a map from Unicode characters to- Pango.CoverageLevel. It is an opaque structure with no public fields.- 
classmethod from_bytes(bytes)[source]¶
- Parameters: - bytes ( - bytes) – binary data representing a- Pango.Coverage- Returns: - a newly allocated - Pango.Coverage, or- Noneif the data was invalid.- Return type: - Pango.Coverageor- None- Convert data generated from - Pango.Coverage.to_bytes() back to a- Pango.Coverage- Deprecated since version 1.44: This returns - None
 - 
classmethod new()[source]¶
- Returns: - the newly allocated - Pango.Coverage, initialized to- Pango.CoverageLevel.NONEwith a reference count of one, which should be freed with- Pango.Coverage.unref().- Return type: - Pango.Coverage- Create a new - Pango.Coverage
 - 
copy()[source]¶
- Returns: - the newly allocated - Pango.Coverage, with a reference count of one, which should be freed with- Pango.Coverage.unref().- Return type: - Pango.Coverage- Copy an existing - Pango.Coverage. (This function may now be unnecessary since we refcount the structure. File a bug if you use it.)
 - 
get(index_)[source]¶
- Parameters: - index ( - int) – the index to check- Returns: - the coverage level of self for character index_. - Return type: - Pango.CoverageLevel- Determine whether a particular index is covered by self 
 - 
max(other)[source]¶
- Parameters: - other ( - Pango.Coverage) – another- Pango.Coverage- 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: - Pango.Coverage- Increase the reference count on the - Pango.Coverageby one
 - 
set(index_, level)[source]¶
- Parameters: - index (int) – the index to modify
- level (Pango.CoverageLevel) – the new level for index_
 - Modify a particular index within self 
- index (
 - 
to_bytes()[source]¶
- Returns: - location to store result (must be freed with - GLib.free())- Return type: - bytes: - bytes- Convert a - Pango.Coveragestructure into a flat binary format- Deprecated since version 1.44: This returns - None
 - 
unref()[source]¶
- Decrease the reference count on the - Pango.Coverageby one. If the result is zero, free the coverage and all associated memory.
 
- 
classmethod