Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Coverage

[18:7] extends: object

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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • Coverage ()

    Create a new PangoCoverage

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • copy ()

    Copy an existing PangoCoverage.

  • get (int index_)

    Determine whether a particular index is covered by @coverage.

    • @p index_ is the index to check.
  • max (object 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.

    • @p other is another PangoCoverage.
    • @r None.
  • ref ()

    Increase the reference count on the PangoCoverage by one.

  • set (int index_, string level)

    Modify a particular index within @coverage

    • @p index_ is the index to modify.
    • @p level is the new level for @index_.
    • @r None.
  • unref ()

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

    • @r None.