pub struct StackingNodeRole {
pub absent: bool,
pub position: Position,
pub display: Display,
pub is_real_sc: bool,
pub sc_z: i32,
pub has_transform: bool,
pub clips_children: bool,
pub has_scroll_table: bool,
pub is_scrollable: bool,
pub effective_hidden: bool,
pub has_text_split: bool,
}Expand description
Snapshot of a box node’s stacking, clip, scroll, and visibility structural role used by
retained incremental layout/paragraph fast paths to verify StackingPlan invariance.
Fields§
§absent: bool§position: Position§display: Display§is_real_sc: bool§sc_z: i32§has_transform: bool§clips_children: bool§has_scroll_table: bool§is_scrollable: bool§has_text_split: boolImplementations§
Source§impl StackingNodeRole
impl StackingNodeRole
Sourcepub fn resolve<S: StackingStyleSource>(
store: &NodeStore,
style: &S,
id: NodeId,
is_top_layer: bool,
parent_hidden: bool,
) -> Self
pub fn resolve<S: StackingStyleSource>( store: &NodeStore, style: &S, id: NodeId, is_top_layer: bool, parent_hidden: bool, ) -> Self
Resolves id’s current structural role under style and parent_hidden.
Runs resolve_node_sc_state first (which inspects the box parent before id) so id
stays hot in SceneStackingStyleSource’s 1-entry cache for every remaining query.
Trait Implementations§
Source§impl Clone for StackingNodeRole
impl Clone for StackingNodeRole
impl Copy for StackingNodeRole
Source§impl Debug for StackingNodeRole
impl Debug for StackingNodeRole
impl Eq for StackingNodeRole
Source§impl PartialEq for StackingNodeRole
impl PartialEq for StackingNodeRole
impl StructuralPartialEq for StackingNodeRole
Auto Trait Implementations§
impl Forget for StackingNodeRole
impl Freeze for StackingNodeRole
impl Move for StackingNodeRole
impl RefUnwindSafe for StackingNodeRole
impl Send for StackingNodeRole
impl Sync for StackingNodeRole
impl Unpin for StackingNodeRole
impl UnsafeUnpin for StackingNodeRole
impl UnwindSafe for StackingNodeRole
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