forked from Patagames/Pdf.WinForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRenderRect.cs
More file actions
24 lines (23 loc) · 745 Bytes
/
RenderRect.cs
File metadata and controls
24 lines (23 loc) · 745 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
namespace Patagames.Pdf.Net.Controls.WinForms
{
internal struct RenderRect
{
public bool IsChecked { get; set; }
public float X { get; set; }
public float Y { get; set; }
public float Left { get { return X; } }
public float Top { get { return Y; } }
public float Right { get { return X + Width; } }
public float Bottom { get { return Y + Height; } }
public float Width { get; set; }
public float Height { get; set; }
public RenderRect(float x, float y, float width, float height, bool isChecked)
{
X = x;
Y = y;
Width = width;
Height = height;
IsChecked = isChecked;
}
}
}