pub struct NodeGraphEditorConfig {
pub interaction: NodeGraphInteractionConfig,
pub runtime_tuning: NodeGraphRuntimeTuning,
}Expand description
Persisted editor configuration stored alongside pure view state.
Fields§
§interaction: NodeGraphInteractionConfig§runtime_tuning: NodeGraphRuntimeTuningImplementations§
Source§impl NodeGraphEditorConfig
impl NodeGraphEditorConfig
pub fn from_parts( interaction: NodeGraphInteractionConfig, runtime_tuning: NodeGraphRuntimeTuning, ) -> Self
pub fn into_parts(self) -> (NodeGraphInteractionConfig, NodeGraphRuntimeTuning)
pub fn is_default(this: &Self) -> bool
pub fn resolved_interaction_state(&self) -> NodeGraphInteractionState
pub fn with_spatial_index_enabled(self, enabled: bool) -> Self
pub fn with_only_render_visible_elements(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for NodeGraphEditorConfig
impl Clone for NodeGraphEditorConfig
Source§fn clone(&self) -> NodeGraphEditorConfig
fn clone(&self) -> NodeGraphEditorConfig
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 NodeGraphEditorConfig
impl Debug for NodeGraphEditorConfig
Source§impl Default for NodeGraphEditorConfig
impl Default for NodeGraphEditorConfig
Source§fn default() -> NodeGraphEditorConfig
fn default() -> NodeGraphEditorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeGraphEditorConfig
impl<'de> Deserialize<'de> for NodeGraphEditorConfig
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 NodeGraphEditorConfig
impl PartialEq for NodeGraphEditorConfig
Source§fn eq(&self, other: &NodeGraphEditorConfig) -> bool
fn eq(&self, other: &NodeGraphEditorConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeGraphEditorConfig
impl Serialize for NodeGraphEditorConfig
impl StructuralPartialEq for NodeGraphEditorConfig
Auto Trait Implementations§
impl Freeze for NodeGraphEditorConfig
impl RefUnwindSafe for NodeGraphEditorConfig
impl Send for NodeGraphEditorConfig
impl Sync for NodeGraphEditorConfig
impl Unpin for NodeGraphEditorConfig
impl UnsafeUnpin for NodeGraphEditorConfig
impl UnwindSafe for NodeGraphEditorConfig
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