2009-02-22 11:43:35 +01:00
|
|
|
|
#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 detailed licensing details.
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2011-12-08 01:03:14 +01:00
|
|
|
|
#if !MINIMAL
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
#endif
|
2009-02-22 11:43:35 +01:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
using OpenTK.Input;
|
|
|
|
|
using OpenTK.Graphics;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform
|
|
|
|
|
{
|
2009-06-04 13:21:33 +02:00
|
|
|
|
[Obsolete]
|
2009-06-02 17:49:39 +02:00
|
|
|
|
internal interface INativeGLWindow : IDisposable
|
2009-02-22 11:43:35 +01:00
|
|
|
|
{
|
2009-03-07 11:49:32 +01:00
|
|
|
|
void CreateWindow(int width, int height, GraphicsMode mode, int major, int minor, GraphicsContextFlags flags, out IGraphicsContext context);
|
2009-02-22 11:43:35 +01:00
|
|
|
|
void DestroyWindow();
|
|
|
|
|
void ProcessEvents();
|
2009-05-07 21:48:22 +02:00
|
|
|
|
Point PointToClient(Point point);
|
|
|
|
|
Point PointToScreen(Point point);
|
2009-02-22 11:43:35 +01:00
|
|
|
|
|
|
|
|
|
bool Exists { get; }
|
|
|
|
|
IWindowInfo WindowInfo { get; }
|
|
|
|
|
|
|
|
|
|
string Title { get; set; }
|
|
|
|
|
bool Visible { get; set; }
|
|
|
|
|
bool IsIdle { get; }
|
|
|
|
|
IInputDriver InputDriver { get; }
|
|
|
|
|
WindowState WindowState { get; set; }
|
|
|
|
|
WindowBorder WindowBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
event CreateEvent Create;
|
|
|
|
|
event DestroyEvent Destroy;
|
|
|
|
|
}
|
|
|
|
|
|
2009-06-04 13:21:33 +02:00
|
|
|
|
[Obsolete]
|
|
|
|
|
internal delegate void CreateEvent(object sender, EventArgs e);
|
|
|
|
|
[Obsolete]
|
|
|
|
|
internal delegate void DestroyEvent(object sender, EventArgs e);
|
2009-02-22 11:43:35 +01:00
|
|
|
|
}
|