Obsoleted.

This commit is contained in:
the_fiddler 2008-02-28 13:53:28 +00:00
parent 64aa98f9c6
commit 97ccade80f
3 changed files with 37 additions and 8 deletions

View file

@ -13,8 +13,8 @@ namespace OpenTK.Platform
/// <summary> /// <summary>
/// Provides methods to /// Provides methods to
/// </summary> /// </summary>
public interface IMutableWindowInfo : IWindowInfo public interface IMutableWindowInfo : IWindowInfoOld
{ {
void CopyInfoFrom(IWindowInfo info); void CopyInfoFrom(IWindowInfoOld info);
} }
} }

View file

@ -0,0 +1,27 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* See license.txt for license info
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Platform
{
/// <summary>
/// Provides a platform independent mechanism to interact with System.Windows.Forms.Control,
/// System.Windows.Forms.NativeWindow and OpenTK.GameWindow low-level implementation data.
/// </summary>
[Obsolete("Use OpenTK.Platform.IWindowInfo instead.")]
public interface IWindowInfoOld
{
IntPtr Handle { get; }
IWindowInfoOld Parent { get; }
IWindowInfoOld GetInfoFrom(System.Windows.Forms.Control control);
IWindowInfoOld GetInfoFrom(System.Windows.Forms.NativeWindow window);
IWindowInfoOld GetInfoFrom(OpenTK.GameWindow window);
IWindowInfoOld GetInfoFrom(IWindowInfoOld info);
}
}

View file

@ -11,6 +11,7 @@ using System.Windows.Forms;
namespace OpenTK.Platform namespace OpenTK.Platform
{ {
#if false
/// <summary> /// <summary>
/// Describes a Windows.Form.Control, Windows.Forms.NativeWindow or OpenTK.GameWindow. /// Describes a Windows.Form.Control, Windows.Forms.NativeWindow or OpenTK.GameWindow.
/// </summary> /// </summary>
@ -87,7 +88,7 @@ namespace OpenTK.Platform
/// <summary> /// <summary>
/// Gets the parent of the window described by the WindowInfo class. /// Gets the parent of the window described by the WindowInfo class.
/// </summary> /// </summary>
public IWindowInfo Parent public IWindowInfoOld Parent
{ {
get { return implementation.Parent; } get { return implementation.Parent; }
} }
@ -96,7 +97,7 @@ namespace OpenTK.Platform
/// Updates the WindowInfo to describe the specified Control. /// Updates the WindowInfo to describe the specified Control.
/// </summary> /// </summary>
/// <param name="control">The System.Windows.Forms.Control to describe.</param> /// <param name="control">The System.Windows.Forms.Control to describe.</param>
public IWindowInfo GetInfoFrom(Control control) public IWindowInfoOld GetInfoFrom(Control control)
{ {
return implementation.GetInfoFrom(control); return implementation.GetInfoFrom(control);
} }
@ -105,7 +106,7 @@ namespace OpenTK.Platform
/// Updates the WindowInfo to describe the specified NativeWindow. /// Updates the WindowInfo to describe the specified NativeWindow.
/// </summary> /// </summary>
/// <param name="window">The System.Windows.Forms.NativeWindow to describe.</param> /// <param name="window">The System.Windows.Forms.NativeWindow to describe.</param>
public IWindowInfo GetInfoFrom(NativeWindow window) public IWindowInfoOld GetInfoFrom(NativeWindow window)
{ {
return implementation.GetInfoFrom(window); return implementation.GetInfoFrom(window);
} }
@ -114,7 +115,7 @@ namespace OpenTK.Platform
/// Updates the WindowInfo to describe the specified GameWindow. /// Updates the WindowInfo to describe the specified GameWindow.
/// </summary> /// </summary>
/// <param name="window">The OpenTK.GameWindow to describe.</param> /// <param name="window">The OpenTK.GameWindow to describe.</param>
public IWindowInfo GetInfoFrom(GameWindow window) public IWindowInfoOld GetInfoFrom(GameWindow window)
{ {
return implementation.GetInfoFrom(window); return implementation.GetInfoFrom(window);
} }
@ -123,7 +124,7 @@ namespace OpenTK.Platform
/// Updates the WindowInfo using the specified IWindowInfo. /// Updates the WindowInfo using the specified IWindowInfo.
/// </summary> /// </summary>
/// <param name="window">The OpenTK.Platform.IWindowInfo to get information from.</param> /// <param name="window">The OpenTK.Platform.IWindowInfo to get information from.</param>
public IWindowInfo GetInfoFrom(IWindowInfo info) public IWindowInfoOld GetInfoFrom(IWindowInfoOld info)
{ {
return implementation.GetInfoFrom(info); return implementation.GetInfoFrom(info);
} }
@ -132,7 +133,7 @@ namespace OpenTK.Platform
#region --- IMutableWindowInfo Members --- #region --- IMutableWindowInfo Members ---
public void CopyInfoFrom(IWindowInfo info) void IMutableWindowInfo.CopyInfoFrom(IWindowInfoOld info)
{ {
implementation.CopyInfoFrom(info); implementation.CopyInfoFrom(info);
} }
@ -149,4 +150,5 @@ namespace OpenTK.Platform
#endregion #endregion
} }
#endif
} }