forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSizePosition.cs
More file actions
44 lines (35 loc) · 888 Bytes
/
Copy pathSizePosition.cs
File metadata and controls
44 lines (35 loc) · 888 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
32
33
34
35
36
37
38
39
40
41
42
43
44
namespace BD.WTTS.Models;
[MPObj, MP2Obj(SerializeLayout.Explicit)]
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public sealed partial class SizePosition : BaseNotifyPropertyChanged
{
string DebuggerDisplay => $"Position: {X}x{Y}, Size: {Width}x{Height}";
int _X;
[MPKey(0), MP2Key(0)]
public int X
{
get => _X;
set => this.RaiseAndSetIfChanged(ref _X, value);
}
int _Y;
[MPKey(1), MP2Key(1)]
public int Y
{
get => _Y;
set => this.RaiseAndSetIfChanged(ref _Y, value);
}
double _Height;
[MPKey(2), MP2Key(2)]
public double Height
{
get => _Height;
set => this.RaiseAndSetIfChanged(ref _Height, value);
}
double _Width;
[MPKey(3), MP2Key(3)]
public double Width
{
get => _Width;
set => this.RaiseAndSetIfChanged(ref _Width, value);
}
}