Skip to main content

ConformanceAction

Enum ConformanceAction 

Source
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: GraphTransaction
§

ApplyNodeDrag

Fields

§node: NodeId
§

ApplyNodeDragSession

Fields

§node: NodeId
§

AssertNodePosition

Fields

§node: NodeId
§expected: CanvasPoint
§

ApplyNodeResize

Fields

§

ApplyNodePointerResize

§

ApplyNodePointerResizeSession

§

ApplyNodePointerDown

§

ApplySelectionBox

Fields

§

AssertConnectionTarget

§

AssertConnectionTargetFromHandles

Fields

§input: ConformanceConnectionTargetFromHandlesInput
§

ApplyConnectEdge

Fields

§

ApplyConnectEdgeSession

§

ApplyReconnectEdge

Fields

§

ApplyNodeNudge

Fields

§

ApplyDeleteSelection

§

ApplyDeleteSelectionForKey

§

ApplyAutoPan

Fields

§

ApplySelectionAutoPan

§

ReportNodeMeasurement

Fields

§measurement: NodeMeasurement
§

AssertLayoutFacts

§

ApplyViewportPan

Fields

§

ApplyViewportPanConstrained

Fields

§viewport_size: CanvasSize
§

ApplyViewportZoom

Fields

§

ApplyViewportZoomConstrained

Fields

§viewport_size: CanvasSize
§

ApplyViewportAnimationFrame

Fields

§elapsed_seconds: f32
§

ApplyViewportAnimationFrames

Fields

§elapsed_seconds: Vec<f32>
§

AssertViewportAnimationFrame

Fields

§elapsed_seconds: f32
§

ApplyViewportPanInertiaFrame

Fields

§elapsed_seconds: f32
§

ApplyViewportPanInertiaFrames

Fields

§elapsed_seconds: Vec<f32>
§

AssertViewportPanInertiaFrame

Fields

§elapsed_seconds: f32
§

ExpectViewportPanInertiaRejected

§

AssertViewportDoubleClickZoom

§

ApplyViewportScrollGesture

§

ApplyViewportDragPanGesture

§

ApplyViewportDragPanSession

§

SetViewport

Fields

§zoom: f32
§

AssertRenderingQuery

Fields

§viewport_size: CanvasSize
§

SetSelection

Fields

§nodes: Vec<NodeId>
§edges: Vec<EdgeId>
§groups: Vec<GroupId>
§

EmitGesture

Implementations§

Source§

impl ConformanceAction

Source§

impl ConformanceAction

Source

pub fn dispatch_transaction(transaction: GraphTransaction) -> Self

Builds the low-level transaction fixture action.

Prefer the interaction-specific constructors when checking adapter behavior.

Source

pub fn assert_node_position(node: NodeId, expected: CanvasPoint) -> Self

Source

pub fn set_viewport(pan: CanvasPoint, zoom: f32) -> Self

Source

pub fn set_selection( nodes: impl IntoIterator<Item = NodeId>, edges: impl IntoIterator<Item = EdgeId>, groups: impl IntoIterator<Item = GroupId>, ) -> Self

Source

pub fn emit_gesture(event: NodeGraphGestureEvent) -> Self

Source§

impl ConformanceAction

Source

pub fn report_node_measurement(measurement: NodeMeasurement) -> Self

Source

pub fn assert_layout_facts( viewport_size: CanvasSize, expected: ConformanceLayoutFactsExpectation, ) -> Self

Source§

impl ConformanceAction

Source

pub fn apply_node_drag(node: NodeId, to: CanvasPoint) -> Self

Source

pub fn apply_node_drag_session( node: NodeId, start: CanvasPoint, to: CanvasPoint, ) -> Self

Source

pub fn apply_node_resize(request: NodeResizeRequest) -> Self

Source

pub fn apply_node_pointer_resize(request: NodePointerResizeRequest) -> Self

Source

pub fn apply_node_pointer_resize_session( request: NodePointerResizeRequest, ) -> Self

Source

pub fn apply_node_pointer_down( node: NodeId, multi_selection_active: bool, screen_delta: CanvasPoint, ) -> Self

Source

pub fn apply_node_pointer_down_expect_claim( node: NodeId, multi_selection_active: bool, screen_delta: CanvasPoint, expected_claim: PointerGestureClaim, ) -> Self

Source

pub fn apply_node_nudge(request: NodeNudgeRequest) -> Self

Source§

impl ConformanceAction

Source

pub fn assert_rendering_query( viewport_size: CanvasSize, expected: RenderingQueryResult, ) -> Self

Source§

impl ConformanceAction

Source§

impl ConformanceAction

Source

pub fn apply_auto_pan(request: AutoPanRequest) -> Self

Source

pub fn apply_selection_auto_pan(request: SelectionAutoPanRequest) -> Self

Source

pub fn apply_viewport_pan(request: ViewportPanRequest) -> Self

Source

pub fn apply_viewport_pan_constrained( request: ViewportPanRequest, viewport_size: CanvasSize, ) -> Self

Source

pub fn apply_viewport_zoom(request: ViewportZoomRequest) -> Self

Source

pub fn apply_viewport_zoom_constrained( request: ViewportZoomRequest, viewport_size: CanvasSize, ) -> Self

Source

pub fn apply_viewport_animation_frame( request: ViewportAnimationRequest, elapsed_seconds: f32, ) -> Self

Source

pub fn apply_viewport_animation_frames( request: ViewportAnimationRequest, elapsed_seconds: impl IntoIterator<Item = f32>, ) -> Self

Source

pub fn assert_viewport_animation_frame( request: ViewportAnimationRequest, elapsed_seconds: f32, expected: ViewportAnimationFrame, ) -> Self

Source

pub fn apply_viewport_pan_inertia_frame( request: ViewportPanInertiaRequest, elapsed_seconds: f32, ) -> Self

Source

pub fn apply_viewport_pan_inertia_frames( request: ViewportPanInertiaRequest, elapsed_seconds: impl IntoIterator<Item = f32>, ) -> Self

Source

pub fn assert_viewport_pan_inertia_frame( request: ViewportPanInertiaRequest, elapsed_seconds: f32, expected: ViewportPanInertiaFrame, ) -> Self

Source

pub fn expect_viewport_pan_inertia_rejected( request: ViewportPanInertiaRequest, ) -> Self

Source

pub fn assert_viewport_double_click_zoom( input: ViewportDoubleClickZoomInput, expected: ViewportAnimationPlan, ) -> Self

Source

pub fn expect_viewport_double_click_zoom_rejected( input: ViewportDoubleClickZoomInput, rejection: ViewportGestureRejection, ) -> Self

Source

pub fn apply_viewport_scroll_gesture( context: ViewportGestureContext, input: ViewportScrollInput, ) -> Self

Source

pub fn expect_viewport_scroll_gesture_rejected( context: ViewportGestureContext, input: ViewportScrollInput, rejection: ViewportGestureRejection, ) -> Self

Source

pub fn apply_viewport_drag_pan_gesture( context: ViewportGestureContext, input: ViewportDragPanInput, ) -> Self

Source

pub fn expect_viewport_drag_pan_gesture_rejected( context: ViewportGestureContext, input: ViewportDragPanInput, rejection: ViewportGestureRejection, ) -> Self

Source

pub fn apply_viewport_drag_pan_session( context: ViewportGestureContext, input: ViewportDragPanInput, ) -> Self

Source

pub fn expect_viewport_drag_pan_session_rejected( context: ViewportGestureContext, input: ViewportDragPanInput, rejection: ViewportGestureRejection, ) -> Self

Source§

impl ConformanceAction

Source

pub fn kind(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for ConformanceAction

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConformanceAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ConformanceAction

Source§

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 Serialize for ConformanceAction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.