GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(infra): create `Event` classes for relevant window events
Lars Bergerc0cfcb270015
diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowDestroyedEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowDestroyedEvent.csnew file mode 100644index 00000000..ddae1ac0--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowDestroyedEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowDestroyedEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowDestroyedEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowFocusedEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowFocusedEvent.csnew file mode 100644index 00000000..f3fd5883--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowFocusedEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowFocusedEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowFocusedEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowHiddenEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowHiddenEvent.csnew file mode 100644index 00000000..ad3f8549--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowHiddenEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowHiddenEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowHiddenEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizeEndedEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizeEndedEvent.csnew file mode 100644index 00000000..14a74490--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizeEndedEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowMinimizeEndedEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowMinimizeEndedEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizedEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizedEvent.csnew file mode 100644index 00000000..277500b8--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowMinimizedEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowMinimizedEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowMinimizedEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}diff --git a/LarsWM.Infrastructure/WindowsApi/Events/WindowShownEvent.cs b/LarsWM.Infrastructure/WindowsApi/Events/WindowShownEvent.csnew file mode 100644index 00000000..a145ab30--- /dev/null+++ b/LarsWM.Infrastructure/WindowsApi/Events/WindowShownEvent.cs@@ -0,0 +1,15 @@+using System;+using LarsWM.Infrastructure.Bussing;++namespace LarsWM.Infrastructure.WindowsApi.Events+{+ public class WindowShownEvent : Event+ {+ public IntPtr WindowHandle { get; }++ public WindowShownEvent(IntPtr windowHandle)+ {+ WindowHandle = windowHandle;+ }+ }+}