Skip to content

Commit 088818b

Browse files
committed
Move delegate into EventHandler.cs
#2216
1 parent 7f43d85 commit 088818b

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

Flow.Launcher.Plugin/EventHandler.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,24 @@ namespace Flow.Launcher.Plugin
3232
/// <returns>return true to continue handling, return false to intercept system handling</returns>
3333
public delegate bool FlowLauncherGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state);
3434

35+
/// <summary>
36+
/// A delegate for when the visibility is changed
37+
/// </summary>
38+
/// <param name="sender"></param>
39+
/// <param name="args"></param>
40+
public delegate void VisibilityChangedEventHandler(object sender, VisibilityChangedEventArgs args);
41+
42+
/// <summary>
43+
/// The event args for <see cref="VisibilityChangedEventHandler"/>
44+
/// </summary>
45+
public class VisibilityChangedEventArgs : EventArgs
46+
{
47+
/// <summary>
48+
/// <see langword="true"/> if the main window has become visible
49+
/// </summary>
50+
public bool IsVisible { get; init; }
51+
}
52+
3553
/// <summary>
3654
/// Arguments container for the Key Down event
3755
/// </summary>

Flow.Launcher.Plugin/VisibilityChangedEventHandler.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)