struct Protocol::DOMSnapshot::InlineTextBox

Overview

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

Included Modules

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bounding_box : DOM::Rect #

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


[View source]
def num_characters : Int::Primitive #

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.


[View source]
def start_character_index : Int::Primitive #

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.


[View source]