summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/WindowResizedEventArgs.cs
blob: 1852636af8f1a1059a08cb23d19bbc6caa9a704a (plain)
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;
        }
    }
}