Pango

object Pango

Skipped during bindings generation

  • alias LayoutRun: GlyphItem

  • parameter attrs: LogAttr

  • 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

  • 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: Unsupported pointer to primitive type

  • 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

  • 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

  • include HarfBuzz: Missing dependant repository

Properties

Link copied to clipboard
const val ANALYSIS_FLAG_CENTERED_BASELINE: <Error class: unknown class> = 1

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

Link copied to clipboard
const val ANALYSIS_FLAG_IS_ELLIPSIS: <Error class: unknown class> = 2

Whether this run holds ellipsized text.

Link copied to clipboard
const val ANALYSIS_FLAG_NEED_HYPHEN: <Error class: unknown class> = 4

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 GLYPH_EMPTY: <Error class: unknown class>

A PangoGlyph value that indicates a zero-width empty glpyh.

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

A PangoGlyph value for invalid input.

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

Flag used in PangoGlyph to turn a gunichar value of a valid Unicode character into an unknown-character glyph for that gunichar.

Link copied to clipboard
const val SCALE: <Error class: unknown class> = 1024

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

Link copied to clipboard
const val VERSION_MAJOR: <Error class: unknown class> = 1

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

Link copied to clipboard
const val VERSION_MICRO: <Error class: unknown class> = 0

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

Link copied to clipboard
const val VERSION_MINOR: <Error class: unknown class> = 54

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
fun attrBaselineShiftNew(shift: <Error class: unknown class>): Attribute

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 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
fun attrLetterSpacingNew(letterSpacing: <Error class: unknown class>): Attribute

Create a new letter-spacing attribute.

Link copied to clipboard
fun attrLineHeightNew(factor: <Error class: unknown class>): Attribute

Modify the height of logical line extents by a factor.

Link copied to clipboard
fun attrLineHeightNewAbsolute(height: <Error class: unknown class>): Attribute

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

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
fun attrRiseNew(rise: <Error class: unknown class>): Attribute

Create a new baseline displacement attribute.

Link copied to clipboard
fun attrScaleNew(scaleFactor: <Error class: unknown class>): 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

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

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
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 defaultBreak(text: String, length: <Error class: unknown class>, analysis: Analysis? = null, attrs: LogAttr, attrsLen: <Error class: unknown class>)

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: <Error class: unknown class>): Direction

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

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 itemize(context: Context, text: String, startIndex: <Error class: unknown class>, length: <Error class: unknown class>, attrs: AttrList, cachedIter: AttrIterator? = null): <Error class: unknown class>

Breaks a piece of text into segments with consistent directional level and font.

Link copied to clipboard
fun itemizeWithBaseDir(context: Context, baseDir: Direction, text: String, startIndex: <Error class: unknown class>, length: <Error class: unknown class>, attrs: AttrList, cachedIter: AttrIterator? = null): <Error class: unknown class>

Like pango_itemize(), but with an explicitly specified base direction.

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 shape(text: String, length: <Error class: unknown class>, analysis: Analysis, glyphs: GlyphString)

Convert the characters in @text into glyphs.

Link copied to clipboard
fun shapeFull(itemText: String, itemLength: <Error class: unknown class>, paragraphText: String? = null, paragraphLength: <Error class: unknown class>, analysis: Analysis, glyphs: GlyphString)

Convert the characters in @text into glyphs.

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

Convert the characters in @item into glyphs.

Link copied to clipboard
fun shapeWithFlags(itemText: String, itemLength: <Error class: unknown class>, paragraphText: String? = null, paragraphLength: <Error class: unknown class>, 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

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
fun unitsFromDouble(d: <Error class: unknown class>): <Error class: unknown class>

Converts a floating-point number to Pango units.

Link copied to clipboard
fun unitsToDouble(i: <Error class: unknown class>): <Error class: unknown class>

Converts a number in Pango units to floating-point.

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

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

Link copied to clipboard
fun versionCheck(requiredMajor: <Error class: unknown class>, requiredMinor: <Error class: unknown class>, requiredMicro: <Error class: unknown class>): 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.