// Copyright © 2020 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.DevTools.DOMSnapshot { /// /// Table of details of an element in the DOM tree with a LayoutObject. /// [System.Runtime.Serialization.DataContractAttribute] public class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeIndex"), IsRequired = (true))] public int[] NodeIndex { get; set; } /// /// Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("styles"), IsRequired = (true))] public int[] Styles { get; set; } /// /// The absolute position bounding box. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] public long[] Bounds { get; set; } /// /// Contents of the LayoutText, if any. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] public int[] Text { get; set; } /// /// Stacking context information. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackingContexts"), IsRequired = (true))] public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts { get; set; } /// /// Global paint order index, which is determined by the stacking order of the nodes. Nodes /// that are painted together will have the same index. Only provided if includePaintOrder in /// captureSnapshot was true. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("paintOrders"), IsRequired = (false))] public int[] PaintOrders { get; set; } /// /// The offset rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetRects"), IsRequired = (false))] public long[] OffsetRects { get; set; } /// /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollRects"), IsRequired = (false))] public long[] ScrollRects { get; set; } /// /// The client rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientRects"), IsRequired = (false))] public long[] ClientRects { get; set; } } }