A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel.
More...
#include <pangomm/coverage.h>
A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel.
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. Pango::Coverage holds this information.
Pango::Coverage::Coverage |
( |
| ) |
|
|
delete |
Pango::Coverage::Coverage |
( |
const Coverage& |
| ) |
|
|
delete |
Convert data generated from pango_coverage_to_bytes() back to a Pango::Coverage.
- Parameters
-
bytes | Binary data representing a Pango::Coverage. |
n_bytes | The size of bytes in bytes. |
- Returns
- A newly allocated Pango::Coverage, or
nullptr
if the data was invalid.
Determine whether a particular index is covered by coverage.
- Parameters
-
- Returns
- The coverage level of coverage for character index.
PangoCoverage* Pango::Coverage::gobj |
( |
| ) |
|
Provides access to the underlying C instance.
const PangoCoverage* Pango::Coverage::gobj |
( |
| ) |
const |
Provides access to the underlying C instance.
PangoCoverage* Pango::Coverage::gobj_copy |
( |
| ) |
const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
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.
- Parameters
-
void Pango::Coverage::operator delete |
( |
void * |
, |
|
|
std::size_t |
|
|
) |
| |
|
protected |
void Pango::Coverage::reference |
( |
| ) |
const |
Increment the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
Modify a particular index within coverage.
- Parameters
-
index | The index to modify. |
level | The new level for index. |
Convert the coverage map into a flat binary format.
- Returns
- An array of bytes representing the coverage map.
void Pango::Coverage::unreference |
( |
| ) |
const |
Decrement the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.