Initial commit

This commit is contained in:
Rendo 2026-08-10 04:00:20 +05:00
commit d327311719
5 changed files with 4030 additions and 0 deletions

30
src/node.rs Normal file
View file

@ -0,0 +1,30 @@
use iced::{Element, Point};
use crate::Message;
pub struct Node {
pub name: String,
pub inputs: Vec<Socket>,
pub outputs: Vec<Socket>,
pub position: Point,
pub function: Box<dyn Fn([&Socket]) -> Vec<Socket>>
}
pub struct Socket {
name: Option<String>,
kind: SocketType,
data: SocketData
}
pub enum SocketType {
Input,
Output,
}
pub enum SocketData {
F32(f32)
}
pub fn node(from: &Node, node_index: usize) -> Element<'_,Message> {
todo!();
}