Class: Pango::Coverage

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

The Pango::Coverage structure represents a map from Unicode characters to Pango::CoverageLevel. It is an opaque structure with no public fields.

Instance Method Summary collapse

Instance Method Details

#copyPango::Coverage

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

Returns:

  • (Pango::Coverage)

    the newly allocated Pango::Coverage, with a reference count of one, which should be freed with pango_coverage_unref().

#get(index_) ⇒ Pango::CoverageLevel

Determine whether a particular index is covered by coverage

Parameters:

  • index_ (Integer)

    the index to check

Returns:

#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.

Parameters:

Returns:

  • (nil)

#newPango::Coverage

Create a new Pango::Coverage

Returns:

  • (Pango::Coverage)

    the newly allocated Pango::Coverage, initialized to %PANGO_COVERAGE_NONE with a reference count of one, which should be freed with pango_coverage_unref().

#refPango::Coverage

Increase the reference count on the Pango::Coverage by one

Returns:

#set(index_, level) ⇒ nil

Modify a particular index within coverage

Parameters:

  • index_ (Integer)

    the index to modify

  • level (Pango::CoverageLevel)

    the new level for index_

Returns:

  • (nil)

#to_bytes(bytes, n_bytes) ⇒ nil

Convert a Pango::Coverage structure into a flat binary format

Parameters:

  • bytes (Array<Integer>)

    location to store result (must be freed with g_free())

  • n_bytes (Integer)

    location to store size of result

Returns:

  • (nil)

#unrefnil

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

Returns:

  • (nil)