Pango

object Pango

Skipped during bindings generation

  • class Context: C Type PangoContext is ignored

  • parameter attrs: LogAttr

  • parameter data: gpointer

  • parameter attrs: LogAttr

  • parameter paragraph_delimiter_index: paragraph_delimiter_index: Out parameter is not supported

  • parameter attrs: LogAttr

  • parameter mirrored_ch: Unsupported pointer to primitive type

  • parameter context: C Type PangoContext is ignored

  • parameter context: C Type PangoContext is ignored

  • function log2vis_get_embedding_levels: Return type guint8 is unsupported

  • parameter attr_list: attr_list: Out parameter is not supported

  • parameter value: value: Out parameter is not supported

  • parameter attr_list: attr_list: Out parameter is not supported

  • parameter stretch: stretch: Out parameter is not supported

  • parameter style: style: Out parameter is not supported

  • parameter variant: variant: Out parameter is not supported

  • parameter weight: weight: Out parameter is not supported

  • function quantize_line_geometry: In/Out parameter is not supported

  • parameter stream: gpointer

  • function scan_int: In/Out parameter is not supported

  • function scan_string: In/Out parameter is not supported

  • function scan_word: In/Out parameter is not supported

  • function skip_space: In/Out parameter is not supported

  • parameter attrs: LogAttr

  • callback AttrDataCopyFunc: Return type gpointer is unsupported

  • constant GLYPH_EMPTY: Glyph

  • constant GLYPH_INVALID_INPUT: Glyph

  • constant GLYPH_UNKNOWN_FLAG: Glyph

  • record ContextClass: glib type struct are ignored

  • record FontClass: glib type struct are ignored

  • record FontFaceClass: glib type struct are ignored

  • record FontFamilyClass: glib type struct are ignored

  • record FontMapClass: glib type struct are ignored

  • record FontsetClass: glib type struct are ignored

  • record FontsetSimpleClass: glib type struct are ignored

  • record LayoutClass: glib type struct are ignored

  • record RendererClass: glib type struct are ignored

  • record RendererPrivate: Disguised records are ignored

Properties

Link copied to clipboard

Whether the segment should be shifted to center around the baseline.

Link copied to clipboard

Whether this run holds ellipsized text.

Link copied to clipboard

Whether to add a hyphen at the end of the run during shaping.

Link copied to clipboard
const val ATTR_INDEX_FROM_TEXT_BEGINNING: <Error class: unknown class>

Value for @start_index in PangoAttribute that indicates the beginning of the text.

Link copied to clipboard
const val ATTR_INDEX_TO_TEXT_END: <Error class: unknown class>

Value for @end_index in PangoAttribute that indicates the end of the text.

Link copied to clipboard
const val SCALE: Int = 1024

The scale between dimensions used for Pango distances and device units.

Link copied to clipboard
const val VERSION_MAJOR: Int = 1

The major component of the version of Pango available at compile-time.

Link copied to clipboard
const val VERSION_MICRO: Int = 6

The micro component of the version of Pango available at compile-time.

Link copied to clipboard
const val VERSION_MINOR: Int = 50

The minor component of the version of Pango available at compile-time.

Link copied to clipboard

A string literal containing the version of Pango available at compile-time.

Functions

Link copied to clipboard

Create a new allow-breaks attribute.

Link copied to clipboard
fun attrBackgroundAlphaNew(alpha: <Error class: unknown class>): Attribute

Create a new background alpha attribute.

Link copied to clipboard
fun attrBackgroundNew(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>): Attribute

Create a new background color attribute.

Link copied to clipboard

Create a new baseline displacement attribute.

Link copied to clipboard
fun attrFallbackNew(enableFallback: Boolean): Attribute

Create a new font fallback attribute.

Link copied to clipboard

Create a new font family attribute.

Link copied to clipboard

Create a new font description attribute.

Link copied to clipboard

Create a new font features tag attribute.

Link copied to clipboard

Create a new font scale attribute.

Link copied to clipboard
fun attrForegroundAlphaNew(alpha: <Error class: unknown class>): Attribute

Create a new foreground alpha attribute.

Link copied to clipboard
fun attrForegroundNew(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>): Attribute

Create a new foreground color attribute.

Link copied to clipboard

Create a new gravity hint attribute.

Link copied to clipboard

Create a new gravity attribute.

Link copied to clipboard

Create a new insert-hyphens attribute.

Link copied to clipboard

Create a new language tag attribute.

Link copied to clipboard
fun attrLetterSpacingNew(letterSpacing: Int): Attribute

Create a new letter-spacing attribute.

Link copied to clipboard

Modify the height of logical line extents by a factor.

Link copied to clipboard

Override the height of logical line extents to be @height.

Link copied to clipboard

Deserializes a PangoAttrList from a string.

Link copied to clipboard
fun attrOverlineColorNew(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>): Attribute

Create a new overline color attribute.

Link copied to clipboard

Create a new overline-style attribute.

Link copied to clipboard

Create a new baseline displacement attribute.

Link copied to clipboard
fun attrScaleNew(scaleFactor: Double): Attribute

Create a new font size scale attribute.

Link copied to clipboard

Marks the range of the attribute as a single sentence.

Link copied to clipboard
fun attrShapeNew(inkRect: Rectangle, logicalRect: Rectangle): Attribute

Create a new shape attribute.

Link copied to clipboard

Create a new attribute that influences how invisible characters are rendered.

Link copied to clipboard

Create a new font-size attribute in fractional points.

Link copied to clipboard

Create a new font-size attribute in device units.

Link copied to clipboard

Create a new font stretch attribute.

Link copied to clipboard
fun attrStrikethroughColorNew(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>): Attribute

Create a new strikethrough color attribute.

Link copied to clipboard

Create a new strike-through attribute.

Link copied to clipboard

Create a new font slant style attribute.

Link copied to clipboard

Create a new attribute that influences how characters are transformed during shaping.

Link copied to clipboard

Fetches the attribute type name.

Link copied to clipboard

Allocate a new attribute type ID.

Link copied to clipboard
fun attrUnderlineColorNew(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>): Attribute

Create a new underline color attribute.

Link copied to clipboard

Create a new underline-style attribute.

Link copied to clipboard

Create a new font variant attribute (normal or small caps).

Link copied to clipboard

Create a new font weight attribute.

Link copied to clipboard

Marks the range of the attribute as a single word.

Link copied to clipboard
fun bidiTypeForUnichar(ch: <Error class: unknown class>): BidiType

Determines the bidirectional type of a character.

Link copied to clipboard
fun defaultBreak(text: String, length: Int, analysis: Analysis? = null, attrs: LogAttr, attrsLen: Int)

This is the default break algorithm.

Link copied to clipboard
fun extentsToPixels(inclusive: Rectangle? = null, nearest: Rectangle? = null)

Converts extents from Pango units to device units.

Link copied to clipboard
fun findBaseDir(text: String, length: Int): Direction

Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm.

Link copied to clipboard

Creates a new font description from a string representation.

Link copied to clipboard
fun gravityGetForMatrix(matrix: Matrix? = null): Gravity

Finds the gravity that best matches the rotation component in a PangoMatrix.

Link copied to clipboard
fun gravityGetForScript(script: Script, baseGravity: Gravity, hint: GravityHint): Gravity

Returns the gravity to use in laying out a PangoItem.

Link copied to clipboard
fun gravityGetForScriptAndWidth(script: Script, wide: Boolean, baseGravity: Gravity, hint: GravityHint): Gravity

Returns the gravity to use in laying out a single character or PangoItem.

Link copied to clipboard

Converts a PangoGravity value to its natural rotation in radians.

Link copied to clipboard
fun isZeroWidth(ch: <Error class: unknown class>): Boolean

Checks if a character that should not be normally rendered.

Link copied to clipboard
fun languageFromString(language: String? = null): Language?

Convert a language tag to a PangoLanguage.

Link copied to clipboard

Returns the PangoLanguage for the current locale of the process.

Link copied to clipboard

Returns the list of languages that the user prefers.

Link copied to clipboard
fun layoutDeserializeErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun markupParserNew(accelMarker: <Error class: unknown class>): <Error class: unknown class>

Incrementally parses marked-up text to create a plain-text string and an attribute list.

Link copied to clipboard
fun reorderItems(items: <Error class: unknown class>): <Error class: unknown class>

Reorder items from logical order to visual order.

Link copied to clipboard
fun resolveException(error: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
fun scriptForUnichar(ch: <Error class: unknown class>): Script

Looks up the script for a particular character.

Link copied to clipboard

Finds a language tag that is reasonably representative of @script.

Link copied to clipboard
fun shape(text: String, length: Int, analysis: Analysis, glyphs: GlyphString)

Convert the characters in @text into glyphs.

Link copied to clipboard
fun shapeFull(itemText: String, itemLength: Int, paragraphText: String? = null, paragraphLength: Int, analysis: Analysis, glyphs: GlyphString)

Convert the characters in @text into glyphs.

Link copied to clipboard
fun shapeItem(item: Item, paragraphText: String? = null, paragraphLength: Int, logAttrs: LogAttr? = null, glyphs: GlyphString, flags: ShapeFlags)

Convert the characters in @item into glyphs.

Link copied to clipboard
fun shapeWithFlags(itemText: String, itemLength: Int, paragraphText: String? = null, paragraphLength: Int, analysis: Analysis, glyphs: GlyphString, flags: ShapeFlags)

Convert the characters in @text into glyphs.

Link copied to clipboard

Splits a %G_SEARCHPATH_SEPARATOR-separated list of files, stripping white space and substituting ~/ with $HOME/.

Link copied to clipboard

Deserializes a PangoTabArray from a string.

Link copied to clipboard

Trims leading and trailing whitespace from a string.

Link copied to clipboard
fun unicharDirection(ch: <Error class: unknown class>): Direction

Determines the inherent direction of a character.

Link copied to clipboard

Converts a floating-point number to Pango units.

Link copied to clipboard

Converts a number in Pango units to floating-point.

Link copied to clipboard
fun version(): Int

Returns the encoded version of Pango available at run-time.

Link copied to clipboard
fun versionCheck(requiredMajor: Int, requiredMinor: Int, requiredMicro: Int): String?

Checks that the Pango library in use is compatible with the given version.

Link copied to clipboard

Returns the version of Pango available at run-time.