create a way to create states

This commit is contained in:
Evan Almloff committed 2023-01-29 20:28:29 -06:00
1 parent 2c205f8ca5
commit 0058c7ed32
7 files changed
+186 -77

No files matched your search

+12
View File
@@ -192,6 +192,18 @@ impl Pass for TaffyLayout {
}
changed
}
fn create<'a>(
node_view: NodeView<()>,
node: <Self::NodeDependencies as Dependancy>::ElementBorrowed<'a>,
parent: Option<<Self::ParentDependencies as Dependancy>::ElementBorrowed<'a>>,
children: Option<Vec<<Self::ChildDependencies as Dependancy>::ElementBorrowed<'a>>>,
context: &SendAnyMap,
) -> Self {
let mut myself = Self::default();
myself.pass(node_view, node, parent, children, context);
myself
}
}
// these are the attributes in layout_attiributes in native-core