csharp
public readonly record struct ViewportDragA 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 ButtonWhich button is down.
public ModifierKeys ModifiersWhat is held on the keyboard.
public float XWhere the pointer is, relative to the viewport's top-left, in render pixels.
public float YDitto.
public float DeltaXHow far it moved since the last report, in render pixels.
public float DeltaYDitto.
public float TotalXHow far it has moved since the press.
public float TotalYDitto.
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