LayoutLine

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

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

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: Int

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
val runs: <Error class: unknown class>?

list of runs in the line, from left to right

Link copied to clipboard

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(): Int

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

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

Increase the reference count of a PangoLayoutLine by one.

Link copied to clipboard
fun unref()

Decrease the reference count of a PangoLayoutLine by one.