Struct chrome_remote_interface_model::dom_snapshot::LayoutTreeNode [−][src]
This is supported on crate features
experimental
and DOMSnapshot
and CSS
and DOM
and DOMDebugger
and Page
only.Details of an element in the DOM tree with a LayoutObject.
Implementations
impl LayoutTreeNode
[src]
pub fn builder() -> LayoutTreeNodeBuilder
[src]
pub fn dom_node_index(&self) -> u32
[src]
The index of the related DOM node in the domNodes
array returned by getSnapshot
.
pub fn bounding_box(&self) -> &Rect
[src]
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
pub fn layout_text(&self) -> Option<&String>
[src]
Contents of the LayoutText, if any.
pub fn inline_text_nodes(&self) -> Option<&Vec<InlineTextBox>>
[src]
The post-layout inline text nodes, if any.
pub fn style_index(&self) -> Option<&u32>
[src]
Index into the computedStyles
array returned by getSnapshot
.
pub fn paint_order(&self) -> Option<&u32>
[src]
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 getSnapshot was true.
pub fn is_stacking_context(&self) -> Option<&bool>
[src]
Set to true to indicate the element begins a new stacking context.
Trait Implementations
impl Clone for LayoutTreeNode
[src]
fn clone(&self) -> LayoutTreeNode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LayoutTreeNode
[src]
impl<'de> Deserialize<'de> for LayoutTreeNode
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for LayoutTreeNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for LayoutTreeNode
[src]
impl Send for LayoutTreeNode
[src]
impl Sync for LayoutTreeNode
[src]
impl Unpin for LayoutTreeNode
[src]
impl UnwindSafe for LayoutTreeNode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,