Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: added struct for Rect data type from windows api

Lars15f78ecff8be
diff --git a/LarsWM/WindowsApi/DataTypes/WindowRect.cs b/LarsWM/WindowsApi/DataTypes/WindowRect.cs
new file mode 100644
index 00000000..bf870897
--- /dev/null
+++ b/LarsWM/WindowsApi/DataTypes/WindowRect.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace LarsWM.WindowsApi.DataTypes
+{
+ public struct WindowRect
+ {
+ /// <summary>
+ /// The x-coordinate of the upper-left corner of the rectangle.
+ /// </summary>
+ public int Left { get; set; }
+
+ /// <summary>
+ /// The y-coordinate of the upper-left corner of the rectangle.
+ /// </summary>
+ public int Top { get; set; }
+
+ /// <summary>
+ /// The x-coordinate of the lower-right corner of the rectangle.
+ /// </summary>
+ public int Right { get; set; }
+
+ /// <summary>
+ /// The y-coordinate of the lower-right corner of the rectangle.
+ /// </summary>
+ public int Bottom { get; set; }
+ }
+}