PgCoverage

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.

Constructors

this
this(PangoCoverage* pangoCoverage)

Sets our main struct and passes it to the parent class

this
this()

Create a new PangoCoverage

Members

Functions

copy
PgCoverage copy()

Copy an existing PangoCoverage. (This function may now be unnecessary since we refcount the structure. File a bug if you use it.)

doref
PgCoverage doref()

Increase the reference count on the PangoCoverage by one

get
PangoCoverageLevel get(int index)

Determine whether a particular index is covered by coverage

getPgCoverageStruct
PangoCoverage* getPgCoverageStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

max
void max(PgCoverage other)

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.

set
void set(int index, PangoCoverageLevel level)

Modify a particular index within coverage

toBytes
void toBytes(char[] bytes)

Convert a PangoCoverage structure into a flat binary format

unref
void unref()

Decrease the reference count on the PangoCoverage by one. If the result is zero, free the coverage and all associated memory.

Static functions

fromBytes
PgCoverage fromBytes(char[] bytes)

Convert data generated from pango_converage_to_bytes() back to a PangoCoverage

Variables

pangoCoverage
PangoCoverage* pangoCoverage;

the main Gtk struct

Meta