chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / InlineTextBox

InlineTextBox

data class InlineTextBox

Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

Constructors

<init>

Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

InlineTextBox(boundingBox: Rect, startCharacterIndex: Int, numCharacters: Int)

Properties

boundingBox

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

val boundingBox: Rect

numCharacters

The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.

val numCharacters: Int

startCharacterIndex

The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.

val startCharacterIndex: Int