mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-28 18:55:29 +00:00
e220f3a71a
Removed some unused variables. Added licensing information.
43 lines
912 B
C#
43 lines
912 B
C#
#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
|
|
{
|
|
public interface IResizable
|
|
{
|
|
int Height { get; set; }
|
|
int Width { get; set; }
|
|
|
|
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;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return String.Format("New size: {0}x{1}", Width, Height);
|
|
}
|
|
}
|
|
}
|