pub struct NodeNudgePlan {
pub direction: NodeNudgeDirection,
pub delta: CanvasPoint,
/* private fields */
}Expand description
Planned keyboard nudge transaction.
Fields§
§direction: NodeNudgeDirectionDirection requested by the adapter.
delta: CanvasPointFinal canvas-space delta after step resolution and snapping.
Implementations§
Source§impl NodeNudgePlan
impl NodeNudgePlan
Sourcepub fn items(&self) -> &[NodeDragItem]
pub fn items(&self) -> &[NodeDragItem]
Returns ordered nudge items. Items are sorted by node id for deterministic transactions.
Sourcepub fn transaction(&self) -> &GraphTransaction
pub fn transaction(&self) -> &GraphTransaction
Returns the transaction that applies this nudge update.
Sourcepub fn into_transaction(self) -> GraphTransaction
pub fn into_transaction(self) -> GraphTransaction
Consumes the plan and returns its transaction.
Trait Implementations§
Source§impl Clone for NodeNudgePlan
impl Clone for NodeNudgePlan
Source§fn clone(&self) -> NodeNudgePlan
fn clone(&self) -> NodeNudgePlan
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 moreAuto Trait Implementations§
impl Freeze for NodeNudgePlan
impl RefUnwindSafe for NodeNudgePlan
impl Send for NodeNudgePlan
impl Sync for NodeNudgePlan
impl Unpin for NodeNudgePlan
impl UnsafeUnpin for NodeNudgePlan
impl UnwindSafe for NodeNudgePlan
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