Module modifier

Module modifier 

Source
Expand description

Modifier node scaffolding for Cranpose.

This module defines the foundational pieces of the future Modifier.Node system described in the project roadmap. It introduces traits for modifier nodes and their contexts as well as a light-weight chain container that can reconcile nodes across updates. The implementation focuses on the core runtime plumbing so UI crates can begin migrating without expanding the public API surface.

Structs§

BasicModifierNodeContext
Lightweight ModifierNodeContext implementation that records invalidation requests and update signals.
Constraints
Constraints used during layout measurement.
ModifierChainIter
Iterator walking a modifier chain either from head-to-tail or tail-to-head.
ModifierChainNodeRef
ModifierInvalidation
Records an invalidation request together with the capability mask that triggered it.
ModifierNodeChain
Chain of modifier nodes attached to a layout node.
NodeCapabilities
Capability flags indicating which specialized traits a modifier node implements.
NodeState
Runtime state tracked for every ModifierNode.
SemanticsConfiguration
Semantics configuration for accessibility.
Size

Enums§

FocusState
Focus state of a focus target node.
InvalidationKind
Identifies which part of the rendering pipeline should be invalidated after a modifier node changes state.

Traits§

AnyModifierElement
Type-erased modifier element used by the runtime to reconcile chains.
DelegatableNode
Provides traversal helpers that mirror Jetpack Compose’s DelegatableNode contract.
DrawModifierNode
Marker trait for draw-specific modifier nodes.
DrawScope
FocusNode
Marker trait for focus modifier nodes.
LayoutModifierNode
Marker trait for layout-specific modifier nodes.
Measurable
Object capable of measuring a layout child and exposing intrinsic sizes.
ModifierElement
Transitional alias so existing call sites that refer to ModifierElement keep compiling while the ecosystem migrates to ModifierNodeElement.
ModifierNode
Core trait implemented by modifier nodes.
ModifierNodeContext
Runtime services exposed to modifier nodes while attached to a tree.
ModifierNodeElement
Strongly typed modifier elements that can create and update nodes while exposing equality/hash/inspector contracts that mirror Jetpack Compose.
PointerInputNode
Marker trait for pointer input modifier nodes.
SemanticsNode
Marker trait for semantics modifier nodes.

Functions§

modifier_element
Convenience helper for callers to construct a type-erased modifier element without having to mention the internal wrapper type.

Type Aliases§

DynModifierElement
Boxed type-erased modifier element.