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
48 lines (40 loc) · 979 Bytes
/
SizePosition.cs
File metadata and controls
48 lines (40 loc) · 979 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
45
46
47
48
using ReactiveUI;
using System.Collections.Generic;
using System.Text;
using MPKey = MessagePack.KeyAttribute;
using MPObj = MessagePack.MessagePackObjectAttribute;
namespace System.Application.Models
{
[MPObj]
public sealed class SizePosition : ReactiveObject
{
int _X;
[MPKey(0)]
public int X
{
get => _X;
set => this.RaiseAndSetIfChanged(ref _X, value);
}
int _Y;
[MPKey(1)]
public int Y
{
get => _Y;
set => this.RaiseAndSetIfChanged(ref _Y, value);
}
double _Height;
[MPKey(2)]
public double Height
{
get => _Height;
set => this.RaiseAndSetIfChanged(ref _Height, value);
}
double _Width;
[MPKey(3)]
public double Width
{
get => _Width;
set => this.RaiseAndSetIfChanged(ref _Width, value);
}
}
}