mizchi/crater-layout/tree does not have a README file
pub struct CacheStats {
cache_hits : Int
cache_misses : Int
nodes_computed : Int
}pub struct ConstraintKey {
available_width : Double
available_height : Double?
sizing_mode : SizingMode
} derive(Eq)fn ConstraintKey::new(available_width : Double, available_height : Double?, sizing_mode : SizingMode) -> ConstraintKeypub struct ConstraintSpace {
available_width : Double
available_height : Double?
sizing_mode : SizingMode
parent_width : Double
parent_height : Double?
viewport_width : Double
viewport_height : Double
}fn ConstraintSpace::new(available_width : Double, available_height : Double?, sizing_mode : SizingMode, parent_width : Double, parent_height : Double?, viewport_width? : Double, viewport_height? : Double) -> ConstraintSpaceimpl Show for DependencyKindpub(all) enum IntrinsicState {
Resolved(width~ : Double, height~ : Double)
Pending(placeholder_width~ : Double, placeholder_height~ : Double)
Error
}pub struct LayoutNode {
id : String
uid : Int
style : Style
children : Array[LayoutNode]
measure : MeasureFunc?
text : String?
dirty : Bool
children_dirty : Bool
cached_layout : LayoutCache?
dependencies : DependencyKind
computed_x : Double
computed_y : Double
computed_width : Double
computed_height : Double
has_new_layout : Bool
intrinsic_state : IntrinsicState?
on_dirty : (Int) -> Unit?
}impl LayoutView for LayoutNodefn LayoutNode::set_grid_auto_columns(self : LayoutNode, tracks : Array[TrackSizingFunction]) -> LayoutNodefn LayoutNode::set_grid_auto_rows(self : LayoutNode, tracks : Array[TrackSizingFunction]) -> LayoutNodefn LayoutNode::set_grid_column(self : LayoutNode, start : GridPlacement, end : GridPlacement) -> LayoutNodefn LayoutNode::set_grid_row(self : LayoutNode, start : GridPlacement, end : GridPlacement) -> LayoutNodefn LayoutNode::set_grid_template_columns(self : LayoutNode, tracks : Array[TrackSizingFunction]) -> LayoutNodefn LayoutNode::set_grid_template_rows(self : LayoutNode, tracks : Array[TrackSizingFunction]) -> LayoutNodefn LayoutNode::set_intrinsic_pending(self : LayoutNode, placeholder_width : Double, placeholder_height : Double) -> Unitpub struct LayoutTree {
root : LayoutNode
parent_map : Map[Int, Int]
node_map : Map[Int, LayoutNode]
viewport_width : Double
viewport_height : Double
resources : ResourceRegistry
}fn LayoutTree::attach_resource(self : LayoutTree, rid : ResourceId, node_uid : Int, placeholder_width? : Double, placeholder_height? : Double) -> Unitfn LayoutTree::from_node(node : Node, viewport_width : Double, viewport_height : Double) -> LayoutTreefn LayoutTree::new(root : LayoutNode, viewport_width : Double, viewport_height : Double) -> LayoutTreefn LayoutTree::reconcile_from(prev : LayoutTree, new_root : Node, dirty_uids : Array[Int], viewport_width : Double, viewport_height : Double) -> LayoutTreefn LayoutTree::register_pending_images_with_src(self : LayoutTree, uid_to_src : Map[Int, String]) -> Map[String, ResourceId]fn LayoutTree::register_resource(self : LayoutTree, node_uid : Int, placeholder_width? : Double, placeholder_height? : Double) -> ResourceIdfn LayoutTree::resolve_resource(self : LayoutTree, rid : ResourceId, width : Double, height : Double) -> Unitimpl Show for ResourceIdlet default_placeholder_width : Doublelet error_placeholder_width : DoubleLayout kernel for crater CSS layout engine
Dependencies