LayoutLine

class LayoutLine(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

A PangoLayoutLine represents one of the lines resulting from laying out a paragraph via PangoLayout.

PangoLayoutLine structures are obtained by calling method@Pango.Layout.get_line and are only valid until the text, attributes, or settings of the parent PangoLayout are modified.

Skipped during bindings generation

  • parameter height: height: Out parameter is not supported

  • parameter ranges: ranges: Out parameter is not supported

  • parameter x_pos: x_pos: Out parameter is not supported

  • parameter index: index: Out parameter is not supported

Constructors

Link copied to clipboard
constructor()

Allocate a new LayoutLine.

constructor(scope: <Error class: unknown class>)

Allocate a new LayoutLine using the provided AutofreeScope.

constructor(layout: Layout?, startIndex: <Error class: unknown class>, length: <Error class: unknown class>, runs: <Error class: unknown class>?, isParagraphStart: <Error class: unknown class>, resolvedDir: <Error class: unknown class>)

Allocate a new LayoutLine.

constructor(layout: Layout?, startIndex: <Error class: unknown class>, length: <Error class: unknown class>, runs: <Error class: unknown class>?, isParagraphStart: <Error class: unknown class>, resolvedDir: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new LayoutLine using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var isParagraphStart: <Error class: unknown class>

#TRUE if this is the first line of the paragraph

Link copied to clipboard

the layout this line belongs to, might be null

Link copied to clipboard
var length: <Error class: unknown class>

length of line in bytes

Link copied to clipboard
val pangoLayoutLinePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var resolvedDir: <Error class: unknown class>

#Resolved PangoDirection of line

Link copied to clipboard
var runs: <Error class: unknown class>?

list of runs in the line, from left to right

Link copied to clipboard
var startIndex: <Error class: unknown class>

start of line as byte index into layout->text

Functions

Link copied to clipboard
fun getExtents(inkRect: Rectangle?, logicalRect: Rectangle?)

Computes the logical and ink extents of a layout line.

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

Returns the length of the line, in bytes.

Link copied to clipboard
fun getPixelExtents(inkRect: Rectangle?, logicalRect: Rectangle?)

Computes the logical and ink extents of @layout_line in device units.

Link copied to clipboard

Returns the resolved direction of the line.

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

Returns the start index of the line, as byte index into the text of the layout.

Link copied to clipboard

Returns whether this is the first line of the paragraph.

Link copied to clipboard
fun ref(): LayoutLine?

Increase the reference count of a PangoLayoutLine by one.

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

Decrease the reference count of a PangoLayoutLine by one.