pub struct NodeGraphInteractionConfig {Show 60 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 elevate_nodes_on_select: bool,
pub elevate_edges_on_select: bool,
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
Persisted interaction configuration stored alongside view state.
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§elevate_nodes_on_select: bool§elevate_edges_on_select: bool§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 NodeGraphInteractionConfig
impl NodeGraphInteractionConfig
pub fn is_default(this: &Self) -> bool
Trait Implementations§
Source§impl Clone for NodeGraphInteractionConfig
impl Clone for NodeGraphInteractionConfig
Source§fn clone(&self) -> NodeGraphInteractionConfig
fn clone(&self) -> NodeGraphInteractionConfig
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 NodeGraphInteractionConfig
impl Debug for NodeGraphInteractionConfig
Source§impl Default for NodeGraphInteractionConfig
impl Default for NodeGraphInteractionConfig
Source§impl<'de> Deserialize<'de> for NodeGraphInteractionConfig
impl<'de> Deserialize<'de> for NodeGraphInteractionConfig
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 NodeGraphInteractionConfig
impl PartialEq for NodeGraphInteractionConfig
Source§fn eq(&self, other: &NodeGraphInteractionConfig) -> bool
fn eq(&self, other: &NodeGraphInteractionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeGraphInteractionConfig
Auto Trait Implementations§
impl Freeze for NodeGraphInteractionConfig
impl RefUnwindSafe for NodeGraphInteractionConfig
impl Send for NodeGraphInteractionConfig
impl Sync for NodeGraphInteractionConfig
impl Unpin for NodeGraphInteractionConfig
impl UnsafeUnpin for NodeGraphInteractionConfig
impl UnwindSafe for NodeGraphInteractionConfig
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