Skip to content

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

feat: created Monitor class for holding properties about user's monitors

Lars6efc72596b89
diff --git a/LarsWM/Monitor.cs b/LarsWM/Monitor.cs
new file mode 100644
index 00000000..e98c8557
--- /dev/null
+++ b/LarsWM/Monitor.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+
+namespace LarsWM
+{
+ public class Monitor
+ {
+ public int Index { get; private set; }
+ public string Name => Screen.DeviceName;
+ public int Width => Screen.WorkingArea.Width;
+ public int Height => Screen.WorkingArea.Height;
+ public int X => Screen.WorkingArea.X;
+ public int Y => Screen.WorkingArea.Y;
+
+ public Screen Screen { get; }
+
+ public Monitor(int index, Screen screen)
+ {
+ Index = index;
+ Screen = screen;
+ }
+ }
+}