Flow.Launcher/Flow.Launcher.Plugin/EventHandler.cs

31 lines
1.1 KiB
C#
Raw Permalink Normal View History

2015-10-30 23:17:34 +00:00
using System.Windows;
2014-07-19 02:12:11 +00:00
using System.Windows.Input;
2020-04-21 09:12:17 +00:00
namespace Flow.Launcher.Plugin
2014-07-19 02:12:11 +00:00
{
2020-04-21 12:16:10 +00:00
public delegate void FlowLauncherKeyDownEventHandler(FlowLauncherKeyDownEventArgs e);
public delegate void AfterFlowLauncherQueryEventHandler(FlowLauncherQueryEventArgs e);
2014-07-19 02:12:11 +00:00
2015-02-03 10:32:16 +00:00
public delegate void ResultItemDropEventHandler(Result result, IDataObject dropObject, DragEventArgs e);
2015-02-02 15:28:40 +00:00
/// <summary>
/// Global keyboard events
/// </summary>
/// <param name="keyevent">WM_KEYDOWN = 256,WM_KEYUP = 257,WM_SYSKEYUP = 261,WM_SYSKEYDOWN = 260</param>
/// <param name="vkcode"></param>
/// <param name="state"></param>
/// <returns>return true to continue handling, return false to intercept system handling</returns>
2020-04-21 12:16:10 +00:00
public delegate bool FlowLauncherGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state);
2020-04-21 12:16:10 +00:00
public class FlowLauncherKeyDownEventArgs
2014-07-19 02:12:11 +00:00
{
public string Query { get; set; }
public KeyEventArgs keyEventArgs { get; set; }
}
2020-04-21 12:16:10 +00:00
public class FlowLauncherQueryEventArgs
{
public Query Query { get; set; }
}
2014-07-19 02:12:11 +00:00
}