Added stub for WindowState.

This commit is contained in:
the_fiddler 2008-04-13 21:32:04 +00:00
parent 43b43fc256
commit a90a6c6e3d
5 changed files with 121 additions and 39 deletions

View file

@ -262,7 +262,7 @@ namespace OpenTK
#endregion
#region --- Public Methods ---
#region --- Public Members ---
#region public virtual void Exit()
@ -925,6 +925,18 @@ namespace OpenTK
#endregion
internal WindowState WindowState
{
get
{
return glWindow.WindowState;
}
set
{
glWindow.WindowState = value;
}
}
#endregion
#region --- GameWindow Timing ---

View file

@ -35,6 +35,7 @@ namespace OpenTK.Platform
//IGraphicsContext Context { get; }
IInputDriver InputDriver { get; }
bool Fullscreen { get; set; }
WindowState WindowState { get; set; }
event CreateEvent Create;
event DestroyEvent Destroy;

View file

@ -455,6 +455,22 @@ namespace OpenTK.Platform.Windows
#endregion
#region public OpenTK.WindowState WindowState
public OpenTK.WindowState WindowState
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
#endregion
#endregion
#region --- IResizable Members ---

View file

@ -563,6 +563,22 @@ namespace OpenTK.Platform.X11
#endregion
#region public OpenTK.WindowState WindowState
public OpenTK.WindowState WindowState
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
#endregion
#endregion
#region --- IResizable Members ---

View file

@ -0,0 +1,37 @@
#region --- License ---
/* Licensed under the MIT/X11 license.
* Copyright (c) 2006-2008 the OpenTK Team.
* This notice may not be removed from any source distribution.
* See license.txt for licensing details.
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK
{
/// <summary>
/// Defines the available states for the GameWindow.
/// </summary>
public enum WindowState
{
/// <summary>
/// The GameWindow is minimized to the taskbar (also known as 'iconified').
/// </summary>
Minimized,
/// <summary>
/// The GameWindow is in its normal state.
/// </summary>
Normal,
/// <summary>
/// The GameWindow covers the whole working area, which includes the desktop but not the taskbar and/or panels.
/// </summary>
Maximized,
/// <summary>
/// The GameWindow covers the whole screen, including all taskbars and/or panels.
/// </summary>
Fullscreen
}
}