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

  • constructor new_with_positions: Varargs parameter is not supported

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

Gets the number of tab stops in @tab_array.

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

Resizes a tab array.

Link copied to clipboard
fun setDecimalPoint(tabIndex: <Error class: unknown class>, 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: <Error class: unknown class>, alignment: TabAlign, location: <Error class: unknown class>)

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.

Link copied to clipboard
open override fun toString(): String

Serializes a PangoTabArray to a string.