2007-08-10 11:27:13 +02:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-07-23 02:15:18 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform
|
|
|
|
|
{
|
|
|
|
|
public interface IResizable
|
|
|
|
|
{
|
|
|
|
|
int Height { get; set; }
|
|
|
|
|
int Width { get; set; }
|
2007-08-21 14:04:01 +02:00
|
|
|
|
/*
|
|
|
|
|
int Top { get; }
|
|
|
|
|
int Bottom { get; }
|
|
|
|
|
int Left { get; }
|
|
|
|
|
int Right { get; }
|
|
|
|
|
*/
|
2007-07-23 02:15:18 +02:00
|
|
|
|
event ResizeEvent Resize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public delegate void ResizeEvent(object sender, ResizeEventArgs e);
|
|
|
|
|
|
|
|
|
|
public class ResizeEventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
public int Width, Height;
|
|
|
|
|
|
|
|
|
|
public ResizeEventArgs()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ResizeEventArgs(int width, int height)
|
|
|
|
|
{
|
|
|
|
|
this.Width = width;
|
|
|
|
|
this.Height = height;
|
|
|
|
|
}
|
2007-08-06 13:22:18 +02:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return String.Format("New size: {0}x{1}", Width, Height);
|
|
|
|
|
}
|
2007-07-23 02:15:18 +02:00
|
|
|
|
}
|
|
|
|
|
}
|