pub struct GraphNode {
pub id: String,
pub title: String,
pub category: NodeCategory,
pub x: f32,
pub y: f32,
pub inputs: Vec<NodePin>,
pub outputs: Vec<NodePin>,
pub collapsed: bool,
pub preview_enabled: bool,
}Fields§
§id: String§title: String§category: NodeCategory§x: f32§y: f32§inputs: Vec<NodePin>§outputs: Vec<NodePin>§collapsed: bool§preview_enabled: boolImplementations§
Source§impl GraphNode
impl GraphNode
pub fn new(id: String, title: String, category: NodeCategory) -> GraphNode
pub fn position(self, x: f32, y: f32) -> GraphNode
pub fn input(self, pin: NodePin) -> GraphNode
pub fn output(self, pin: NodePin) -> GraphNode
pub fn collapsed(self, collapsed: bool) -> GraphNode
pub fn preview(self, enabled: bool) -> GraphNode
pub fn get_category_color(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnwindSafe for GraphNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more