Skip to main content

NodeGraphInteractionConfig

Struct NodeGraphInteractionConfig 

Source
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: NodeGraphNodeOrigin

Implementations§

Trait Implementations§

Source§

impl Clone for NodeGraphInteractionConfig

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeGraphInteractionConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NodeGraphInteractionConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for NodeGraphInteractionConfig

Source§

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

Source§

fn eq(&self, other: &NodeGraphInteractionConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for NodeGraphInteractionConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for NodeGraphInteractionConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.