-
Notifications
You must be signed in to change notification settings - Fork 0
/
Zone.cs
30 lines (28 loc) · 867 Bytes
/
Zone.cs
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
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace WindowSmasher {
/// <summary>
/// A zone which a window can be snapped into.
/// </summary>
public class Zone {
/// <summary>
/// The letter belonging to this zone.
/// </summary>
public char Letter { get; private set; }
/// <summary>
/// This zone's position and size.
/// </summary>
public Rectangle Bounds { get; private set; }
/// <summary>
/// Construct a new Zone.
/// </summary>
/// <param name="letter">The letter for this Zone.</param>
/// <param name="bounds">The position and size of this Zone.</param>
public Zone(char letter, Rectangle bounds) {
Letter = letter;
Bounds = bounds;
}
}
}