pub struct NodeGraphAutoPanTuning {
pub on_node_drag: bool,
pub on_connect: bool,
pub on_node_focus: bool,
pub speed: f32,
pub margin: f32,
}Expand description
Auto-pan tuning for drag/connect/focus workflows.
Fields§
§on_node_drag: bool§on_connect: bool§on_node_focus: bool§speed: f32Speed in screen pixels per second (approximate).
margin: f32Margin from viewport edge in screen pixels that triggers auto-pan.
Trait Implementations§
Source§impl Clone for NodeGraphAutoPanTuning
impl Clone for NodeGraphAutoPanTuning
Source§fn clone(&self) -> NodeGraphAutoPanTuning
fn clone(&self) -> NodeGraphAutoPanTuning
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 NodeGraphAutoPanTuning
impl Debug for NodeGraphAutoPanTuning
Source§impl Default for NodeGraphAutoPanTuning
impl Default for NodeGraphAutoPanTuning
Source§impl<'de> Deserialize<'de> for NodeGraphAutoPanTuning
impl<'de> Deserialize<'de> for NodeGraphAutoPanTuning
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 NodeGraphAutoPanTuning
impl PartialEq for NodeGraphAutoPanTuning
Source§fn eq(&self, other: &NodeGraphAutoPanTuning) -> bool
fn eq(&self, other: &NodeGraphAutoPanTuning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeGraphAutoPanTuning
impl Serialize for NodeGraphAutoPanTuning
impl StructuralPartialEq for NodeGraphAutoPanTuning
Auto Trait Implementations§
impl Freeze for NodeGraphAutoPanTuning
impl RefUnwindSafe for NodeGraphAutoPanTuning
impl Send for NodeGraphAutoPanTuning
impl Sync for NodeGraphAutoPanTuning
impl Unpin for NodeGraphAutoPanTuning
impl UnsafeUnpin for NodeGraphAutoPanTuning
impl UnwindSafe for NodeGraphAutoPanTuning
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