Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: object
A PangoScriptIter is used to iterate through a string and identify ranges
in different scripts.
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].
text is a UTF-8 string.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 exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.free ()
Frees a
PangoScriptIter.
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 returnsGUnicodeScriptvalues. Callers must be prepared to handle unknown values.
start is location to store start position of the range.end is location to store end position of the range.script is location to store script for range.None.next ()
Advances a
PangoScriptIterto the next range. If @iter is already at the end, it is left unchanged and %FALSE is returned.
%TRUE if @iter was successfully advanced.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.