Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PangoScriptIter

[14:7] extends: object

A PangoScriptIter is used to iterate through a string and identify ranges in different scripts.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • PangoScriptIter (text = null, length = null)

    Create a new PangoScriptIter, used to break a string of Unicode text into runs by Unicode script. No copy is made of @text, so the caller needs to make sure it remains valid until the iterator is freed with [method@Pango.ScriptIter.free].

    • @p text is a UTF-8 string.
    • @p length is length of @text, or -1 if @text is nul-terminated.
  • 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.
  • free ()

    Frees a PangoScriptIter.

    • @r None.
  • get_range ()

    Gets information about the range to which @iter currently points. The range is the set of locations p where *start <= p < *end. (That is, it doesn't include the character stored at *end) Note that while the type of the @script argument is declared as PangoScript, as of Pango 1.18, this function simply returns GUnicodeScript values. Callers must be prepared to handle unknown values.

    • @p start is location to store start position of the range.
    • @p end is location to store end position of the range.
    • @p script is location to store script for range.
    • @r None.
  • next ()

    Advances a PangoScriptIter to the next range. If @iter is already at the end, it is left unchanged and %FALSE is returned.

    • @r %TRUE if @iter was successfully advanced.