FilledRectTests ToggleRectVisibilityOnClick Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ToggleRectVisibilityOnClick()
Examples

[Test]
public void ToggleRectVisibilityOnClick()
{
    var rect = new FilledRect(Rectangle.FromCenter(Vector2D.Half, new Size(0.2f)), Color.Orange);
    new Command(() => ChangeVisibility(rect)).Add(new MouseButtonTrigger(MouseButton.Left,
        State.Releasing));
}
See Also