Vixen
02b45cc4
csharp
public sealed class TapEvent

A press and release that stayed put.

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

Remarks

⚠ A double tap raises this twice, with Count going 1 then 2, rather than raising a separate event. A double tap is the same gesture with a number on it, and splitting the two forces every handler to answer "is a double tap also two taps" — a question with no general answer, since a button wants both to press it and a rename wants only the second. Reported this way, the handler that cares says so and the one that does not is already right. It is what the web does, for the same reason.

Fields and properties (5)

  • public int PointerId

    Which pointer.

  • public int Count

    How many taps in a row landed in the same place, this one included.

  • public float X

    Where, in document space.

  • public float Y

    Ditto.

  • public ModifierKeys Modifiers

    What was held on the keyboard when the tap completed.

Used by (19)

  • BuildContextVixen.Ui
  • ButtonBaseVixen.Ui.Controls
  • CodeEditorVixen.Ui.Controls.Advanced
  • CompositionTestsVixen.Ui.Tests
  • ControlMarkupVixen.Ui.Controls
  • CurveEditorVixen.Ui.Controls.Advanced
  • DataGridVixen.Ui.Controls.Advanced
  • GestureRecognizerVixen.Ui
  • GestureTestsVixen.Ui.Tests
  • GradientEditorVixen.Ui.Controls.Advanced
  • MarkupTestsVixen.Ui.Controls.Tests
  • NodeCanvasVixen.Ui.Controls.Advanced
  • ReparentTestsVixen.Ui.Tests
  • TextFieldVixen.Ui.Controls
  • TimelineVixen.Ui.Controls.Advanced
  • TransformTestsVixen.Ui.Testing.Tests
  • TreeViewVixen.Ui.Controls.Advanced
  • AssetGridVixen.Editor.App
  • ConsoleViewVixen.Editor.Ui