Vixen
02b45cc4
csharp
public readonly record struct ViewportDrag

A pointer doing something inside a viewport, in the viewport's own coordinates.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Deltas and totals both, for the reason DragEvent carries both: an orbit integrates the delta and a rubber-band selection wants the total, and summing the deltas does not give the second.

Fields and properties (8)

  • public PointerButton Button

    Which button is down.

  • public ModifierKeys Modifiers

    What is held on the keyboard.

  • public float X

    Where the pointer is, relative to the viewport's top-left, in render pixels.

  • public float Y

    Ditto.

  • public float DeltaX

    How far it moved since the last report, in render pixels.

  • public float DeltaY

    Ditto.

  • public float TotalX

    How far it has moved since the press.

  • public float TotalY

    Ditto.

Methods (1)

  • public ViewportDrag(PointerButton Button, ModifierKeys Modifiers, float X, float Y, float DeltaX, float DeltaY, float TotalX, float TotalY)

    A pointer doing something inside a viewport, in the viewport's own coordinates.

Used by (3)

  • ViewportVixen.Ui.Controls.Advanced
  • ViewportTestsVixen.Ui.Controls.Advanced.Tests
  • SceneViewportVixen.Editor.SceneView