Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void DragMouseVerticalToCreateRectangles() { var rectangle = new FilledRect(Rectangle.Unused, Color.GetRandomColor()); //ncrunch: no coverage start new Command((start, end, done) => { rectangle.DrawArea = new Rectangle(start.X - 0.01f, start.Y, 0.02f, end.Y - start.Y); if (done) rectangle = new FilledRect(Rectangle.Unused, Color.GetRandomColor()); }).Add(new MouseDragTrigger(MouseButton.Left, DragDirection.Vertical)); //ncrunch: no coverage end }
See Also