AutoArrangingMenu ButtonSize Property Delta Engine Documentation

Namespace: DeltaEngine.Scenes
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Size ButtonSize { get; set; }

Property Value

Type: Size
Remarks

Tests: DeltaEngine.Scenes.Tests.AutoArrangingMenuTests
Examples

2 unit tests call DeltaEngine.Scenes.AutoArrangingMenu.ButtonSize
[Test, CloseAfterFirstFrame]
public void CreatingSetsButtonSizeAndMenuCenter()
{
    Assert.AreEqual(ButtonSize, menu.ButtonSize);
    Assert.AreEqual(Vector2D.Half, menu.Center);
}
[Test, CloseAfterFirstFrame, Timeout(2000)]
public void ChangingButtonSize()
{
    menu.ButtonSize = Size.Half;
    Assert.AreEqual(Size.Half, menu.ButtonSize);
}
See Also