pub struct LayoutTreeNodeBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> LayoutTreeNodeBuilder<'a>
impl<'a> LayoutTreeNodeBuilder<'a>
Sourcepub fn layoutText(self, layoutText: impl Into<Cow<'a, str>>) -> Self
pub fn layoutText(self, layoutText: impl Into<Cow<'a, str>>) -> Self
Contents of the LayoutText, if any.
Sourcepub fn inlineTextNodes(self, inlineTextNodes: Vec<InlineTextBox>) -> Self
pub fn inlineTextNodes(self, inlineTextNodes: Vec<InlineTextBox>) -> Self
The post-layout inline text nodes, if any.
Sourcepub fn styleIndex(self, styleIndex: u64) -> Self
pub fn styleIndex(self, styleIndex: u64) -> Self
Index into the ‘computedStyles’ array returned by ‘getSnapshot’.
Sourcepub fn paintOrder(self, paintOrder: i64) -> Self
pub fn paintOrder(self, paintOrder: i64) -> 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 isStackingContext(self, isStackingContext: bool) -> Self
pub fn isStackingContext(self, isStackingContext: bool) -> Self
Set to true to indicate the element begins a new stacking context.
pub fn build(self) -> LayoutTreeNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for LayoutTreeNodeBuilder<'a>
impl<'a> RefUnwindSafe for LayoutTreeNodeBuilder<'a>
impl<'a> Send for LayoutTreeNodeBuilder<'a>
impl<'a> Sync for LayoutTreeNodeBuilder<'a>
impl<'a> Unpin for LayoutTreeNodeBuilder<'a>
impl<'a> UnsafeUnpin for LayoutTreeNodeBuilder<'a>
impl<'a> UnwindSafe for LayoutTreeNodeBuilder<'a>
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