summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/WindowResizedEventArgs.cs
blob: a990ba9da7853cd2bfd6934f45d743c75778e492 (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>
        public WindowResizedEventArgs(Point oldSize, Point newSize)
        {
            this.OldSize = oldSize;
            this.NewSize = newSize;
        }
    }
}