Window form the application is running in. In Windows this is done with Windows Forms or WPF.
View code on GitHub
Namespace: DeltaEngine.CoreAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Window type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | CloseAfterFrame | |
![]() | CopyTextToClipboard | |
![]() | Present | |
![]() | SetCursorIcon | |
![]() | SetFullscreen | |
![]() | SetWindowed | |
![]() | ShowMessageBox |
Properties
Name | Description | |
---|---|---|
![]() | BackgroundColor | |
![]() | Handle | |
![]() | IsClosing | |
![]() | IsFullscreen | |
![]() | IsVisible | |
![]() | IsWindowsFormAndNotJustAPanel | |
![]() | Orientation | |
![]() | PixelPosition | |
![]() | ShowCursor | |
![]() | Title | |
![]() | TotalPixelSize | |
![]() | ViewportPixelPosition | |
![]() | ViewportPixelSize |
Events
Name | Description | |
---|---|---|
![]() | FullscreenChanged | |
![]() | OrientationChanged | |
![]() | ViewportSizeChanged |
Remarks
Examples
[Test] public void CreateWindow() { Assert.IsTrue(window.IsVisible); }
[Test] public void SetAndGetTitle() { window.Title = "TestTitle"; Assert.AreEqual("TestTitle", window.Title); }
[Test] public void ChangeTotalSize() { Assert.AreEqual(new Size(320, 180), window.ViewportPixelSize); Size changedSize = window.TotalPixelSize; window.ViewportSizeChanged += size => changedSize = size; window.ViewportPixelSize = new Size(200, 200); Assert.AreEqual(new Size(200, 200), window.ViewportPixelSize); Assert.IsTrue(window.ViewportPixelSize.Width <= 200); Assert.IsTrue(window.ViewportPixelSize.Height <= 200); Assert.IsTrue(changedSize.Width <= 200); Assert.IsTrue(changedSize.Height <= 200); }
See Also