pub enum ConformanceAction {
Show 40 variants
DispatchTransaction {
transaction: GraphTransaction,
},
ApplyNodeDrag {
node: NodeId,
to: CanvasPoint,
},
ApplyNodeDragSession {
node: NodeId,
start: CanvasPoint,
to: CanvasPoint,
},
AssertNodePosition {
node: NodeId,
expected: CanvasPoint,
},
ApplyNodeResize {
request: NodeResizeRequest,
},
ApplyNodePointerResize {
request: NodePointerResizeRequest,
},
ApplyNodePointerResizeSession {
request: NodePointerResizeRequest,
},
ApplyNodePointerDown {
input: NodePointerDownInput,
expected_claim: Option<PointerGestureClaim>,
},
ApplySelectionBox {
input: SelectionBoxInput,
},
AssertConnectionTarget {
input: ConnectionTargetInput,
expected: ResolvedConnectionTarget,
},
AssertConnectionTargetFromHandles {
input: ConformanceConnectionTargetFromHandlesInput,
expected: ResolvedConnectionTarget,
},
ApplyConnectEdge {
request: ConnectEdgeRequest,
},
ApplyConnectEdgeSession {
start: ConnectStart,
request: ConnectEdgeRequest,
},
ApplyReconnectEdge {
request: ReconnectEdgeRequest,
},
ApplyNodeNudge {
request: NodeNudgeRequest,
},
ApplyDeleteSelection,
ApplyDeleteSelectionForKey {
key: NodeGraphKeyCode,
},
ApplyAutoPan {
request: AutoPanRequest,
},
ApplySelectionAutoPan {
request: SelectionAutoPanRequest,
},
ReportNodeMeasurement {
measurement: NodeMeasurement,
},
AssertLayoutFacts {
viewport_size: CanvasSize,
expected: ConformanceLayoutFactsExpectation,
},
ApplyViewportPan {
request: ViewportPanRequest,
},
ApplyViewportPanConstrained {
request: ViewportPanRequest,
viewport_size: CanvasSize,
},
ApplyViewportZoom {
request: ViewportZoomRequest,
},
ApplyViewportZoomConstrained {
request: ViewportZoomRequest,
viewport_size: CanvasSize,
},
ApplyViewportAnimationFrame {
request: ViewportAnimationRequest,
elapsed_seconds: f32,
},
ApplyViewportAnimationFrames {
request: ViewportAnimationRequest,
elapsed_seconds: Vec<f32>,
},
AssertViewportAnimationFrame {
request: ViewportAnimationRequest,
elapsed_seconds: f32,
expected: ViewportAnimationFrame,
},
ApplyViewportPanInertiaFrame {
request: ViewportPanInertiaRequest,
elapsed_seconds: f32,
},
ApplyViewportPanInertiaFrames {
request: ViewportPanInertiaRequest,
elapsed_seconds: Vec<f32>,
},
AssertViewportPanInertiaFrame {
request: ViewportPanInertiaRequest,
elapsed_seconds: f32,
expected: ViewportPanInertiaFrame,
},
ExpectViewportPanInertiaRejected {
request: ViewportPanInertiaRequest,
},
AssertViewportDoubleClickZoom {
input: ViewportDoubleClickZoomInput,
expected: Option<ViewportAnimationPlan>,
expect_rejection: Option<ViewportGestureRejection>,
},
ApplyViewportScrollGesture {
context: ViewportGestureContext,
input: ViewportScrollInput,
expect_rejection: Option<ViewportGestureRejection>,
},
ApplyViewportDragPanGesture {
context: ViewportGestureContext,
input: ViewportDragPanInput,
expect_rejection: Option<ViewportGestureRejection>,
},
ApplyViewportDragPanSession {
context: ViewportGestureContext,
input: ViewportDragPanInput,
expect_rejection: Option<ViewportGestureRejection>,
},
SetViewport {
pan: CanvasPoint,
zoom: f32,
},
AssertRenderingQuery {
viewport_size: CanvasSize,
expected: RenderingQueryResult,
},
SetSelection {
nodes: Vec<NodeId>,
edges: Vec<EdgeId>,
groups: Vec<GroupId>,
},
EmitGesture {
event: NodeGraphGestureEvent,
},
}Variants§
DispatchTransaction
Applies a raw graph transaction through the store dispatch pipeline.
Use this for low-level graph fixture setup or graph-operation conformance. Adapter feel
fixtures should prefer the richer runtime actions such as ApplyNodeDrag,
ApplyConnectEdge, ApplyReconnectEdge, and delete/viewport actions so the fixture locks
the same interaction boundary an adapter should call.
Fields
§
transaction: GraphTransactionApplyNodeDrag
ApplyNodeDragSession
AssertNodePosition
ApplyNodeResize
Fields
§
request: NodeResizeRequestApplyNodePointerResize
Fields
§
request: NodePointerResizeRequestApplyNodePointerResizeSession
Fields
§
request: NodePointerResizeRequestApplyNodePointerDown
ApplySelectionBox
Fields
§
input: SelectionBoxInputAssertConnectionTarget
AssertConnectionTargetFromHandles
ApplyConnectEdge
Fields
§
request: ConnectEdgeRequestApplyConnectEdgeSession
ApplyReconnectEdge
Fields
§
request: ReconnectEdgeRequestApplyNodeNudge
Fields
§
request: NodeNudgeRequestApplyDeleteSelection
ApplyDeleteSelectionForKey
Fields
§
key: NodeGraphKeyCodeApplyAutoPan
Fields
§
request: AutoPanRequestApplySelectionAutoPan
Fields
§
request: SelectionAutoPanRequestReportNodeMeasurement
Fields
§
measurement: NodeMeasurementAssertLayoutFacts
ApplyViewportPan
Fields
§
request: ViewportPanRequestApplyViewportPanConstrained
ApplyViewportZoom
Fields
§
request: ViewportZoomRequestApplyViewportZoomConstrained
ApplyViewportAnimationFrame
ApplyViewportAnimationFrames
AssertViewportAnimationFrame
ApplyViewportPanInertiaFrame
ApplyViewportPanInertiaFrames
AssertViewportPanInertiaFrame
ExpectViewportPanInertiaRejected
Fields
§
request: ViewportPanInertiaRequestAssertViewportDoubleClickZoom
ApplyViewportScrollGesture
Fields
§
context: ViewportGestureContext§
input: ViewportScrollInput§
expect_rejection: Option<ViewportGestureRejection>ApplyViewportDragPanGesture
Fields
§
context: ViewportGestureContext§
input: ViewportDragPanInput§
expect_rejection: Option<ViewportGestureRejection>ApplyViewportDragPanSession
Fields
§
context: ViewportGestureContext§
input: ViewportDragPanInput§
expect_rejection: Option<ViewportGestureRejection>SetViewport
AssertRenderingQuery
SetSelection
EmitGesture
Fields
§
event: NodeGraphGestureEventImplementations§
Source§impl ConformanceAction
impl ConformanceAction
pub fn assert_connection_target( input: ConnectionTargetInput, expected: ResolvedConnectionTarget, ) -> Self
pub fn assert_connection_target_from_handles( input: ConnectionTargetFromHandlesInput<'_>, expected: ResolvedConnectionTarget, ) -> Self
pub fn apply_connect_edge(request: ConnectEdgeRequest) -> Self
pub fn apply_connect_edge_session( start: ConnectStart, request: ConnectEdgeRequest, ) -> Self
pub fn apply_reconnect_edge(request: ReconnectEdgeRequest) -> Self
Source§impl ConformanceAction
impl ConformanceAction
Sourcepub fn dispatch_transaction(transaction: GraphTransaction) -> Self
pub fn dispatch_transaction(transaction: GraphTransaction) -> Self
Builds the low-level transaction fixture action.
Prefer the interaction-specific constructors when checking adapter behavior.
pub fn assert_node_position(node: NodeId, expected: CanvasPoint) -> Self
pub fn set_viewport(pan: CanvasPoint, zoom: f32) -> Self
pub fn set_selection( nodes: impl IntoIterator<Item = NodeId>, edges: impl IntoIterator<Item = EdgeId>, groups: impl IntoIterator<Item = GroupId>, ) -> Self
pub fn emit_gesture(event: NodeGraphGestureEvent) -> Self
Source§impl ConformanceAction
impl ConformanceAction
pub fn report_node_measurement(measurement: NodeMeasurement) -> Self
pub fn assert_layout_facts( viewport_size: CanvasSize, expected: ConformanceLayoutFactsExpectation, ) -> Self
Source§impl ConformanceAction
impl ConformanceAction
pub fn apply_node_drag(node: NodeId, to: CanvasPoint) -> Self
pub fn apply_node_drag_session( node: NodeId, start: CanvasPoint, to: CanvasPoint, ) -> Self
pub fn apply_node_resize(request: NodeResizeRequest) -> Self
pub fn apply_node_pointer_resize(request: NodePointerResizeRequest) -> Self
pub fn apply_node_pointer_resize_session( request: NodePointerResizeRequest, ) -> Self
pub fn apply_node_pointer_down( node: NodeId, multi_selection_active: bool, screen_delta: CanvasPoint, ) -> Self
pub fn apply_node_pointer_down_expect_claim( node: NodeId, multi_selection_active: bool, screen_delta: CanvasPoint, expected_claim: PointerGestureClaim, ) -> Self
pub fn apply_node_nudge(request: NodeNudgeRequest) -> Self
Source§impl ConformanceAction
impl ConformanceAction
pub fn assert_rendering_query( viewport_size: CanvasSize, expected: RenderingQueryResult, ) -> Self
Source§impl ConformanceAction
impl ConformanceAction
pub fn apply_selection_box(input: SelectionBoxInput) -> Self
pub fn apply_delete_selection() -> Self
pub fn apply_delete_selection_for_key(key: KeyCode) -> Self
Source§impl ConformanceAction
impl ConformanceAction
pub fn apply_auto_pan(request: AutoPanRequest) -> Self
pub fn apply_selection_auto_pan(request: SelectionAutoPanRequest) -> Self
pub fn apply_viewport_pan(request: ViewportPanRequest) -> Self
pub fn apply_viewport_pan_constrained( request: ViewportPanRequest, viewport_size: CanvasSize, ) -> Self
pub fn apply_viewport_zoom(request: ViewportZoomRequest) -> Self
pub fn apply_viewport_zoom_constrained( request: ViewportZoomRequest, viewport_size: CanvasSize, ) -> Self
pub fn apply_viewport_animation_frame( request: ViewportAnimationRequest, elapsed_seconds: f32, ) -> Self
pub fn apply_viewport_animation_frames( request: ViewportAnimationRequest, elapsed_seconds: impl IntoIterator<Item = f32>, ) -> Self
pub fn assert_viewport_animation_frame( request: ViewportAnimationRequest, elapsed_seconds: f32, expected: ViewportAnimationFrame, ) -> Self
pub fn apply_viewport_pan_inertia_frame( request: ViewportPanInertiaRequest, elapsed_seconds: f32, ) -> Self
pub fn apply_viewport_pan_inertia_frames( request: ViewportPanInertiaRequest, elapsed_seconds: impl IntoIterator<Item = f32>, ) -> Self
pub fn assert_viewport_pan_inertia_frame( request: ViewportPanInertiaRequest, elapsed_seconds: f32, expected: ViewportPanInertiaFrame, ) -> Self
pub fn expect_viewport_pan_inertia_rejected( request: ViewportPanInertiaRequest, ) -> Self
pub fn assert_viewport_double_click_zoom( input: ViewportDoubleClickZoomInput, expected: ViewportAnimationPlan, ) -> Self
pub fn expect_viewport_double_click_zoom_rejected( input: ViewportDoubleClickZoomInput, rejection: ViewportGestureRejection, ) -> Self
pub fn apply_viewport_scroll_gesture( context: ViewportGestureContext, input: ViewportScrollInput, ) -> Self
pub fn expect_viewport_scroll_gesture_rejected( context: ViewportGestureContext, input: ViewportScrollInput, rejection: ViewportGestureRejection, ) -> Self
pub fn apply_viewport_drag_pan_gesture( context: ViewportGestureContext, input: ViewportDragPanInput, ) -> Self
pub fn expect_viewport_drag_pan_gesture_rejected( context: ViewportGestureContext, input: ViewportDragPanInput, rejection: ViewportGestureRejection, ) -> Self
pub fn apply_viewport_drag_pan_session( context: ViewportGestureContext, input: ViewportDragPanInput, ) -> Self
pub fn expect_viewport_drag_pan_session_rejected( context: ViewportGestureContext, input: ViewportDragPanInput, rejection: ViewportGestureRejection, ) -> Self
Trait Implementations§
Source§impl Clone for ConformanceAction
impl Clone for ConformanceAction
Source§fn clone(&self) -> ConformanceAction
fn clone(&self) -> ConformanceAction
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 ConformanceAction
impl Debug for ConformanceAction
Source§impl<'de> Deserialize<'de> for ConformanceAction
impl<'de> Deserialize<'de> for ConformanceAction
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
Auto Trait Implementations§
impl Freeze for ConformanceAction
impl RefUnwindSafe for ConformanceAction
impl Send for ConformanceAction
impl Sync for ConformanceAction
impl Unpin for ConformanceAction
impl UnsafeUnpin for ConformanceAction
impl UnwindSafe for ConformanceAction
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