struct Protocol::DOMSnapshot::TextBoxSnapshot
- Protocol::DOMSnapshot::TextBoxSnapshot
- Struct
- Value
- Object
Overview
Table of details of the 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
-
#bounds : Array(Rectangle)
The absolute position bounding box.
-
#layout_index : Array(Int::Primitive)
Index of the layout tree node that owns this box collection.
-
#length : Array(Int::Primitive)
The number of characters in this post layout textbox substring.
-
#start : Array(Int::Primitive)
The starting index in characters, for this post layout textbox substring.
Constructor Detail
Instance Method Detail
def layout_index : Array(Int::Primitive)
#
Index of the layout tree node that owns this box collection.
def length : Array(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 : Array(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.