mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added window (de-)activate events
This commit is contained in:
@@ -89,4 +89,44 @@ namespace GlitchyEngine.Events
|
||||
strBuffer.AppendF("WindowMovedEvent: {}, {} (is moving: {})", _x, _y, _isMoving);
|
||||
}
|
||||
}
|
||||
|
||||
public class WindowActivateEvent : Event, IEvent
|
||||
{
|
||||
public override EventType EventType => .WindowMoved;
|
||||
|
||||
public override StringView Name => "WindowActivated";
|
||||
|
||||
public override EventCategory Category => .Application;
|
||||
|
||||
public static EventType StaticType => .WindowActivated;
|
||||
|
||||
public this()
|
||||
{
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.AppendF("WindowActivatedEvent");
|
||||
}
|
||||
}
|
||||
|
||||
public class WindowDeactivateEvent : Event, IEvent
|
||||
{
|
||||
public override EventType EventType => .WindowMoved;
|
||||
|
||||
public override StringView Name => "WindowDeactivated";
|
||||
|
||||
public override EventCategory Category => .Application;
|
||||
|
||||
public static EventType StaticType => .WindowDeactivated;
|
||||
|
||||
public this()
|
||||
{
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.AppendF("WindowDeactivatedEvent");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user