pub struct NodeVisual {
pub id: NodeId,
pub pos: Vec2,
pub size: Vec2,
pub kind: NodeKind,
pub state: NodeState,
pub anchored: bool,
pub label: String,
pub label_scale: f32,
pub is_cluster_core: bool,
pub cluster_member_count: Option<usize>,
pub z: i32,
pub alpha: f32,
}Expand description
Render-facing snapshot of a node. All coordinates/sizes are in Field-space; renderer applies Viewport transform.
Fields§
§id: NodeId§pos: Vec2§size: Vec2§kind: NodeKind§state: NodeState§anchored: boolBack-compat field name: this is “pinned in place” (movement constraint).
(Routing anchor marker is Node.anchor in Field.)
label: String§label_scale: f32§is_cluster_core: bool§cluster_member_count: Option<usize>§z: i32§alpha: f32Trait Implementations§
Source§impl Clone for NodeVisual
impl Clone for NodeVisual
Source§fn clone(&self) -> NodeVisual
fn clone(&self) -> NodeVisual
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeVisual
impl Debug for NodeVisual
Source§impl PartialEq for NodeVisual
impl PartialEq for NodeVisual
impl StructuralPartialEq for NodeVisual
Auto Trait Implementations§
impl Freeze for NodeVisual
impl RefUnwindSafe for NodeVisual
impl Send for NodeVisual
impl Sync for NodeVisual
impl Unpin for NodeVisual
impl UnsafeUnpin for NodeVisual
impl UnwindSafe for NodeVisual
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