#[repr(C)]pub struct NodeDataExt {
pub clip_mask: Option<ImageMask>,
pub accessibility: Option<Box<AccessibilityInfo>>,
pub menu_bar: Option<Box<Menu>>,
pub context_menu: Option<Box<Menu>>,
pub is_anonymous: bool,
pub key: Option<u64>,
pub dataset_merge_callback: Option<DatasetMergeCallback>,
}Expand description
NOTE: NOT EXPOSED IN THE API! Stores extra,
not commonly used information for the NodeData.
This helps keep the primary NodeData struct smaller for common cases.
Fields§
§clip_mask: Option<ImageMask>Optional clip mask for this DOM node.
accessibility: Option<Box<AccessibilityInfo>>Optional extra accessibility information about this DOM node (MSAA, AT-SPI, UA).
Menu bar that should be displayed at the top of this nodes rect.
Context menu that should be opened when the item is left-clicked.
is_anonymous: boolWhether this node is an anonymous box (generated for table layout). Anonymous boxes are not part of the original DOM tree and are created by the layout engine to satisfy table layout requirements (e.g., wrapping non-table children of table elements in anonymous table-row/table-cell boxes).
key: Option<u64>Stable key for reconciliation. If provided, allows the framework to track this node across frames even if its position in the array changes. This is crucial for correct lifecycle events when lists are reordered.
dataset_merge_callback: Option<DatasetMergeCallback>Callback to merge dataset state from a previous frame’s node into the current node. This enables heavy resource preservation (video decoders, GL textures) across frames.
Trait Implementations§
Source§impl Clone for NodeDataExt
impl Clone for NodeDataExt
Source§fn clone(&self) -> NodeDataExt
fn clone(&self) -> NodeDataExt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeDataExt
impl Debug for NodeDataExt
Source§impl Default for NodeDataExt
impl Default for NodeDataExt
Source§fn default() -> NodeDataExt
fn default() -> NodeDataExt
Source§impl Hash for NodeDataExt
impl Hash for NodeDataExt
Source§impl Ord for NodeDataExt
impl Ord for NodeDataExt
Source§fn cmp(&self, other: &NodeDataExt) -> Ordering
fn cmp(&self, other: &NodeDataExt) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NodeDataExt
impl PartialEq for NodeDataExt
Source§impl PartialOrd for NodeDataExt
impl PartialOrd for NodeDataExt
impl Eq for NodeDataExt
impl StructuralPartialEq for NodeDataExt
Auto Trait Implementations§
impl Freeze for NodeDataExt
impl RefUnwindSafe for NodeDataExt
impl Send for NodeDataExt
impl Sync for NodeDataExt
impl Unpin for NodeDataExt
impl UnwindSafe for NodeDataExt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more