summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/WindowResizedEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/WindowResizedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/WindowResizedEventArgs.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/SMAPI/Events/WindowResizedEventArgs.cs b/src/SMAPI/Events/WindowResizedEventArgs.cs
new file mode 100644
index 00000000..a990ba9d
--- /dev/null
+++ b/src/SMAPI/Events/WindowResizedEventArgs.cs
@@ -0,0 +1,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>
+ public WindowResizedEventArgs(Point oldSize, Point newSize)
+ {
+ this.OldSize = oldSize;
+ this.NewSize = newSize;
+ }
+ }
+}