TabArray

class TabArray(pointer: <Error class: unknown class><<Error class: unknown class>>)

A PangoTabArray contains an array of tab stops.

PangoTabArray can be used to set tab stops in a PangoLayout. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.

Skipped during bindings generation

  • parameter alignment: alignment: Out parameter is not supported

  • parameter alignments: alignments: Out parameter is not supported

  • method to_string: C function pango_tab_array_to_string is ignored

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoTabArrayPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun copy(): TabArray

Copies a PangoTabArray.

Link copied to clipboard
fun free()

Frees a tab array and associated resources.

Link copied to clipboard
fun getDecimalPoint(tabIndex: Int): <Error class: unknown class>

Gets the Unicode character to use as decimal point.

Link copied to clipboard

Returns true if the tab positions are in pixels, false if they are in Pango units.

Link copied to clipboard
fun getSize(): Int

Gets the number of tab stops in @tab_array.

Link copied to clipboard
fun resize(newSize: Int)

Resizes a tab array.

Link copied to clipboard
fun setDecimalPoint(tabIndex: Int, decimalPoint: <Error class: unknown class>)

Sets the Unicode character to use as decimal point.

Link copied to clipboard
fun setPositionsInPixels(positionsInPixels: Boolean)

Sets whether positions in this array are specified in pixels.

Link copied to clipboard
fun setTab(tabIndex: Int, alignment: TabAlign, location: Int)

Sets the alignment and location of a tab stop.

Link copied to clipboard
fun sort()

Utility function to ensure that the tab stops are in increasing order.