pub struct LayoutTreeNodeBuilder { /* private fields */ }Available on crate features
experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl LayoutTreeNodeBuilder
impl LayoutTreeNodeBuilder
Sourcepub fn dom_node_index(&mut self, v: u32) -> &mut Self
pub fn dom_node_index(&mut self, v: u32) -> &mut Self
The index of the related DOM node in the domNodes array returned by getSnapshot.
Sourcepub fn bounding_box(&mut self, v: Rect) -> &mut Self
pub fn bounding_box(&mut self, v: Rect) -> &mut Self
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
Sourcepub fn layout_text(&mut self, v: String) -> &mut Self
pub fn layout_text(&mut self, v: String) -> &mut Self
Contents of the LayoutText, if any.
Sourcepub fn inline_text_nodes(&mut self, v: Vec<InlineTextBox>) -> &mut Self
pub fn inline_text_nodes(&mut self, v: Vec<InlineTextBox>) -> &mut Self
The post-layout inline text nodes, if any.
Sourcepub fn style_index(&mut self, v: u32) -> &mut Self
pub fn style_index(&mut self, v: u32) -> &mut Self
Index into the computedStyles array returned by getSnapshot.
Sourcepub fn paint_order(&mut self, v: u32) -> &mut Self
pub fn paint_order(&mut self, v: u32) -> &mut Self
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.
Sourcepub fn is_stacking_context(&mut self, v: bool) -> &mut Self
pub fn is_stacking_context(&mut self, v: bool) -> &mut Self
Set to true to indicate the element begins a new stacking context.
pub fn build(&mut self) -> Result<LayoutTreeNode, &'static str>
Trait Implementations§
Source§impl Clone for LayoutTreeNodeBuilder
impl Clone for LayoutTreeNodeBuilder
Source§fn clone(&self) -> LayoutTreeNodeBuilder
fn clone(&self) -> LayoutTreeNodeBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutTreeNodeBuilder
impl Debug for LayoutTreeNodeBuilder
Auto Trait Implementations§
impl Freeze for LayoutTreeNodeBuilder
impl RefUnwindSafe for LayoutTreeNodeBuilder
impl Send for LayoutTreeNodeBuilder
impl Sync for LayoutTreeNodeBuilder
impl Unpin for LayoutTreeNodeBuilder
impl UnwindSafe for LayoutTreeNodeBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more