forked from Pathoschild/SMAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowResizedEventArgs.cs
More file actions
31 lines (27 loc) · 915 Bytes
/
WindowResizedEventArgs.cs
File metadata and controls
31 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using Microsoft.Xna.Framework;
namespace StardewModdingAPI.Events
{
/// <summary>Event arguments for an <see cref="IDisplayEvents.WindowResized"/> event.</summary>
public class WindowResizedEventArgs : EventArgs
{
/*********
** Accessors
*********/
/// <summary>The previous window size.</summary>
public Point OldSize { get; }
/// <summary>The current window size.</summary>
public Point NewSize { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="oldSize">The previous window size.</param>
/// <param name="newSize">The current window size.</param>
internal WindowResizedEventArgs(Point oldSize, Point newSize)
{
this.OldSize = oldSize;
this.NewSize = newSize;
}
}
}