aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs
new file mode 100644
index 000000000..823bb059d
--- /dev/null
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphRect.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace RealTimeGraphX
+{
+ public struct GraphRect
+ {
+ public double Top { get; set; }
+ public double Left { get; set; }
+ public double Width { get; set; }
+ public double Height { get; set; }
+
+ public double Right
+ {
+ get { return Left + Width; }
+ }
+
+ public double Bottom
+ {
+ get { return Top + Height; }
+ }
+
+ public GraphRect(double x, double y, double w, double h)
+ {
+ Left = x;
+ Top = y;
+ Width = w;
+ Height = h;
+ }
+ }
+}