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
|
|
|
|
|
2015-01-08 14:49:42 +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);
|
2015-01-08 14:49:42 +00:00
|
|
|
|
|
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; }
|
|
|
|
|
|
}
|
2015-01-18 10:21:48 +00:00
|
|
|
|
|
2020-04-21 12:16:10 +00:00
|
|
|
|
public class FlowLauncherQueryEventArgs
|
2015-01-18 10:21:48 +00:00
|
|
|
|
{
|
|
|
|
|
|
public Query Query { get; set; }
|
|
|
|
|
|
}
|
2014-07-19 02:12:11 +00:00
|
|
|
|
}
|