Swaps from landscape to portrait mode as the window aspect changes
View code on GitHub
Inheritance Hierarchy
Blocks UserInterface
Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The UserInterface type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UserInterface | Initializes a new instance of the UserInterface class |
Methods
Name | Description | |
---|---|---|
AddToScore | ||
Dispose | ||
Lose | ||
ShowUserInterfaceLandscape | ||
ShowUserInterfacePortrait |
Properties
Name | Description | |
---|---|---|
Score |
Remarks
Examples
[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