pite_core/lib.rs
1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! Core scene-graph primitives: node handles, the node tree, props, the node type
3//! registry and lifecycle dispatch.
4//!
5//! Knows nothing about Python (`pite-script`), rendering (`pite-render`) or the
6//! scene file format (`pite-scene`). Those plug in through the traits re-exported
7//! here, which is where the crate boundaries are drawn.
8
9#![forbid(unsafe_code)]
10
11mod error;
12mod lifecycle;
13mod math;
14mod node;
15mod props;
16mod registry;
17mod signals;
18mod tree;
19
20pub use error::{CoreError, Result};
21pub use lifecycle::LifecycleSink;
22pub use math::{global_position, Vec2};
23pub use node::{Node, NodeDesc, NodeId, ScriptRef};
24pub use props::{PropValue, Props};
25pub use registry::{NodeFactory, NodeTypeRegistry};
26pub use signals::{SignalDef, SignalRegistry};
27pub use tree::NodeTree;