UserInterface ClassDelta Engine Documentation
Swaps from landscape to portrait mode as the window aspect changes View code on GitHub
Inheritance Hierarchy

System Object
  Blocks UserInterface

Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public class UserInterface : IDisposable

The UserInterface type exposes the following members.

Constructors

  NameDescription
Public methodUserInterface
Initializes a new instance of the UserInterface class
Top
Methods

  NameDescription
Public methodAddToScore
Public methodDispose
Public methodLose
Public methodShowUserInterfaceLandscape
Public methodShowUserInterfacePortrait
Top
Properties

  NameDescription
Public propertyScore
Top
Remarks

Tests: Blocks.Tests.UserInterfaceTests
Examples

3 unit tests call Blocks.UserInterface
[Test, CloseAfterFirstFrame]
public void UserInterfaceShouldChangeFromLandscapeToPortrait()
{
    userInterface.ShowUserInterfacePortrait();
}
[Test, CloseAfterFirstFrame]
public void OnLoseScoreShouldBeZero()
{
    userInterface.Lose();
    Assert.AreEqual(0, userInterface.Score);
}
[Test, CloseAfterFirstFrame]
public void UserInterfaceShouldBeHidden()
{
    userInterface.Dispose();
}
See Also