mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 07:05:28 +00:00
32 lines
640 B
C#
32 lines
640 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|