pub struct NodeGraphInteractionState {Show 63 fields
pub elements_selectable: bool,
pub nodes_draggable: bool,
pub nodes_connectable: bool,
pub nodes_deletable: bool,
pub nodes_focusable: bool,
pub edges_selectable: bool,
pub edges_deletable: bool,
pub edges_focusable: bool,
pub edges_reconnectable: bool,
pub connection_mode: NodeGraphConnectionMode,
pub connection_radius: f32,
pub reconnect_radius: f32,
pub reconnect_on_drop_empty: bool,
pub edge_interaction_width: f32,
pub bezier_hit_test_steps: u8,
pub spatial_index: NodeGraphSpatialIndexTuning,
pub only_render_visible_elements: bool,
pub elevate_nodes_on_select: bool,
pub elevate_edges_on_select: bool,
pub paint_cache_prune: NodeGraphPaintCachePruneTuning,
pub snap_to_grid: bool,
pub snap_grid: CanvasSize,
pub snaplines: bool,
pub snaplines_threshold: f32,
pub pan_on_scroll: bool,
pub pan_on_drag: NodeGraphPanOnDragButtons,
pub selection_on_drag: bool,
pub select_nodes_on_drag: bool,
pub selection_mode: NodeGraphSelectionMode,
pub box_select_edges: NodeGraphBoxSelectEdges,
pub selection_key: NodeGraphModifierKey,
pub multi_selection_key: NodeGraphModifierKey,
pub delete_key: NodeGraphDeleteKey,
pub nudge_step_mode: NodeGraphNudgeStepMode,
pub nudge_step_px: f32,
pub nudge_fast_step_px: f32,
pub disable_keyboard_a11y: bool,
pub pane_click_distance: f32,
pub pan_activation_key_code: Option<NodeGraphKeyCode>,
pub space_to_pan: bool,
pub pan_on_scroll_speed: f32,
pub pan_on_scroll_mode: NodeGraphPanOnScrollMode,
pub pan_inertia: NodeGraphPanInertiaTuning,
pub zoom_on_scroll: bool,
pub zoom_on_scroll_speed: f32,
pub zoom_on_pinch: bool,
pub zoom_on_pinch_speed: f32,
pub zoom_on_double_click: bool,
pub frame_view_duration_ms: u32,
pub frame_view_ease: NodeGraphViewportEase,
pub frame_view_padding: f32,
pub reroute_on_edge_double_click: bool,
pub edge_insert_on_alt_drag: bool,
pub zoom_activation_key: NodeGraphModifierKey,
pub node_drag_threshold: f32,
pub node_drag_handle_mode: NodeGraphDragHandleMode,
pub node_click_distance: f32,
pub connection_drag_threshold: f32,
pub connect_on_click: bool,
pub auto_pan: NodeGraphAutoPanTuning,
pub translate_extent: Option<CanvasRect>,
pub node_extent: Option<CanvasRect>,
pub node_origin: NodeGraphNodeOrigin,
}Expand description
Resolved runtime interaction state assembled from persisted config and runtime tuning.
Fields§
§elements_selectable: bool§nodes_draggable: bool§nodes_connectable: bool§nodes_deletable: bool§nodes_focusable: bool§edges_selectable: bool§edges_deletable: bool§edges_focusable: bool§edges_reconnectable: bool§connection_mode: NodeGraphConnectionMode§connection_radius: f32§reconnect_radius: f32§reconnect_on_drop_empty: bool§edge_interaction_width: f32§bezier_hit_test_steps: u8§spatial_index: NodeGraphSpatialIndexTuning§only_render_visible_elements: bool§elevate_nodes_on_select: bool§elevate_edges_on_select: bool§paint_cache_prune: NodeGraphPaintCachePruneTuning§snap_to_grid: bool§snap_grid: CanvasSize§snaplines: bool§snaplines_threshold: f32§pan_on_scroll: bool§pan_on_drag: NodeGraphPanOnDragButtons§selection_on_drag: bool§select_nodes_on_drag: bool§selection_mode: NodeGraphSelectionMode§box_select_edges: NodeGraphBoxSelectEdges§selection_key: NodeGraphModifierKey§multi_selection_key: NodeGraphModifierKey§delete_key: NodeGraphDeleteKey§nudge_step_mode: NodeGraphNudgeStepMode§nudge_step_px: f32§nudge_fast_step_px: f32§disable_keyboard_a11y: bool§pane_click_distance: f32§pan_activation_key_code: Option<NodeGraphKeyCode>§space_to_pan: bool§pan_on_scroll_speed: f32§pan_on_scroll_mode: NodeGraphPanOnScrollMode§pan_inertia: NodeGraphPanInertiaTuning§zoom_on_scroll: bool§zoom_on_scroll_speed: f32§zoom_on_pinch: bool§zoom_on_pinch_speed: f32§zoom_on_double_click: bool§frame_view_duration_ms: u32§frame_view_ease: NodeGraphViewportEase§frame_view_padding: f32§reroute_on_edge_double_click: bool§edge_insert_on_alt_drag: bool§zoom_activation_key: NodeGraphModifierKey§node_drag_threshold: f32§node_drag_handle_mode: NodeGraphDragHandleMode§node_click_distance: f32§connection_drag_threshold: f32§connect_on_click: bool§auto_pan: NodeGraphAutoPanTuning§translate_extent: Option<CanvasRect>§node_extent: Option<CanvasRect>§node_origin: NodeGraphNodeOriginImplementations§
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn from_parts( config: &NodeGraphInteractionConfig, runtime_tuning: &NodeGraphRuntimeTuning, ) -> Self
pub fn config(&self) -> NodeGraphInteractionConfig
pub fn runtime_tuning(&self) -> NodeGraphRuntimeTuning
pub fn split(&self) -> (NodeGraphInteractionConfig, NodeGraphRuntimeTuning)
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn connection_interaction(&self) -> NodeGraphConnectionInteraction<'_>
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn keyboard_interaction(&self) -> NodeGraphKeyboardInteraction
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn node_drag_interaction(&self) -> NodeGraphNodeDragInteraction<'_>
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn rendering_interaction(&self) -> NodeGraphRenderingInteraction
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn selection_interaction(&self) -> NodeGraphSelectionInteraction
pub fn delete_interaction(&self) -> NodeGraphDeleteInteraction
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn pan_interaction(&self) -> NodeGraphPanInteraction<'_>
pub fn zoom_interaction(&self) -> NodeGraphZoomInteraction
pub fn frame_view_interaction(&self) -> NodeGraphFrameViewInteraction
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn edge_hit_test_options(&self) -> EdgeHitTestOptions
Source§impl NodeGraphInteractionState
impl NodeGraphInteractionState
pub fn node_interaction_policy( &self, node: &Node, ) -> NodeGraphNodeInteractionPolicy
pub fn port_interaction_policy( &self, node: &Node, port: &Port, ) -> NodeGraphPortInteractionPolicy
pub fn edge_interaction_policy( &self, edge: &Edge, ) -> NodeGraphEdgeInteractionPolicy
pub fn edge_hit_test_options_for(&self, edge: &Edge) -> EdgeHitTestOptions
Trait Implementations§
Source§impl Clone for NodeGraphInteractionState
impl Clone for NodeGraphInteractionState
Source§fn clone(&self) -> NodeGraphInteractionState
fn clone(&self) -> NodeGraphInteractionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeGraphInteractionState
impl Debug for NodeGraphInteractionState
Source§impl Default for NodeGraphInteractionState
impl Default for NodeGraphInteractionState
Source§impl<'de> Deserialize<'de> for NodeGraphInteractionState
impl<'de> Deserialize<'de> for NodeGraphInteractionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeGraphInteractionState
impl PartialEq for NodeGraphInteractionState
Source§fn eq(&self, other: &NodeGraphInteractionState) -> bool
fn eq(&self, other: &NodeGraphInteractionState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeGraphInteractionState
Auto Trait Implementations§
impl Freeze for NodeGraphInteractionState
impl RefUnwindSafe for NodeGraphInteractionState
impl Send for NodeGraphInteractionState
impl Sync for NodeGraphInteractionState
impl Unpin for NodeGraphInteractionState
impl UnsafeUnpin for NodeGraphInteractionState
impl UnwindSafe for NodeGraphInteractionState
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