pub enum NodeGraphModifierKey {
None,
CtrlOrMeta,
Shift,
Alt,
}Expand description
Modifier requirement for interaction activation (XyFlow mental model).
This is used for zoom activation (zoomActivationKey), selection activation (selectionKeyCode),
and multi-selection (multiSelectionKeyCode).
Variants§
None
Wheel zoom is always active (no activation modifier required).
CtrlOrMeta
Wheel zoom is active only while Ctrl or Meta is held (recommended default).
Shift
Wheel zoom is active only while Shift is held.
Alt
Wheel zoom is active only while Alt is held.
Implementations§
Source§impl NodeGraphModifierKey
impl NodeGraphModifierKey
pub fn is_pressed(self, modifiers: NodeGraphModifiers) -> bool
Trait Implementations§
Source§impl Clone for NodeGraphModifierKey
impl Clone for NodeGraphModifierKey
Source§fn clone(&self) -> NodeGraphModifierKey
fn clone(&self) -> NodeGraphModifierKey
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 moreimpl Copy for NodeGraphModifierKey
Source§impl Debug for NodeGraphModifierKey
impl Debug for NodeGraphModifierKey
Source§impl Default for NodeGraphModifierKey
impl Default for NodeGraphModifierKey
Source§fn default() -> NodeGraphModifierKey
fn default() -> NodeGraphModifierKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeGraphModifierKey
impl<'de> Deserialize<'de> for NodeGraphModifierKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeGraphModifierKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeGraphModifierKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeGraphModifierKey
Source§impl Hash for NodeGraphModifierKey
impl Hash for NodeGraphModifierKey
Source§impl PartialEq for NodeGraphModifierKey
impl PartialEq for NodeGraphModifierKey
Source§fn eq(&self, other: &NodeGraphModifierKey) -> bool
fn eq(&self, other: &NodeGraphModifierKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeGraphModifierKey
impl Serialize for NodeGraphModifierKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NodeGraphModifierKey
Auto Trait Implementations§
impl Freeze for NodeGraphModifierKey
impl RefUnwindSafe for NodeGraphModifierKey
impl Send for NodeGraphModifierKey
impl Sync for NodeGraphModifierKey
impl Unpin for NodeGraphModifierKey
impl UnsafeUnpin for NodeGraphModifierKey
impl UnwindSafe for NodeGraphModifierKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.