pub struct NodeGraphPanOnDragButtons {
pub left: bool,
pub middle: bool,
pub right: bool,
}Fields§
§left: boolPan the canvas by dragging on empty background with the left mouse button.
middle: boolPan the canvas by dragging with the middle mouse button.
right: boolPan the canvas by dragging with the right mouse button.
When enabled, apps should provide an alternate way to open context menus (or make context
menus conditional on “click without pan”), matching XyFlow’s panOnDrag={[2]} patterns.
Trait Implementations§
Source§impl Clone for NodeGraphPanOnDragButtons
impl Clone for NodeGraphPanOnDragButtons
Source§fn clone(&self) -> NodeGraphPanOnDragButtons
fn clone(&self) -> NodeGraphPanOnDragButtons
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 NodeGraphPanOnDragButtons
Source§impl Debug for NodeGraphPanOnDragButtons
impl Debug for NodeGraphPanOnDragButtons
Source§impl Default for NodeGraphPanOnDragButtons
impl Default for NodeGraphPanOnDragButtons
Source§fn default() -> NodeGraphPanOnDragButtons
fn default() -> NodeGraphPanOnDragButtons
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeGraphPanOnDragButtons
impl<'de> Deserialize<'de> for NodeGraphPanOnDragButtons
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
impl Eq for NodeGraphPanOnDragButtons
Source§impl PartialEq for NodeGraphPanOnDragButtons
impl PartialEq for NodeGraphPanOnDragButtons
Source§fn eq(&self, other: &NodeGraphPanOnDragButtons) -> bool
fn eq(&self, other: &NodeGraphPanOnDragButtons) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeGraphPanOnDragButtons
Auto Trait Implementations§
impl Freeze for NodeGraphPanOnDragButtons
impl RefUnwindSafe for NodeGraphPanOnDragButtons
impl Send for NodeGraphPanOnDragButtons
impl Sync for NodeGraphPanOnDragButtons
impl Unpin for NodeGraphPanOnDragButtons
impl UnsafeUnpin for NodeGraphPanOnDragButtons
impl UnwindSafe for NodeGraphPanOnDragButtons
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.