struct Protocol::DOMSnapshot::InlineTextBox
- Protocol::DOMSnapshot::InlineTextBox
- Struct
- Value
- Object
Overview
Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#bounding_box : DOM::Rect
The bounding box in document coordinates.
-
#num_characters : Int::Primitive
The number of characters in this post layout textbox substring.
-
#start_character_index : Int::Primitive
The starting index in characters, for this post layout textbox substring.
Constructor Detail
Instance Method Detail
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
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.
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.